O'Reilly logo

Unity Android Game Development by Example Beginner's Guide by Thomas Finnegan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – creating the slingshot

Most of the slingshot's appearance will actually be an optical illusion:

  1. To start off the creation of the slingshot, add the slingshot model to the scene and position it at the origin. Apply a light brown material to the Fork model and a dark brown one to the Pouch model.
  2. Next, we need four empty GameObject. Make them all the children of the Slingshot object.
    • Name the first FocalPoint and center it between the fork prongs of the slingshot. This will be the point through which we fire all of the birds.
    • The second is Pouch. Make the pouch model a child of this object, setting its position to 0.5 on the X axis and 0 on the Y and Z axes. This will make the pouch appear in front of the current bird without having ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required