Time for action – creating the slingshot
Most of the slingshot's appearance will actually be an optical illusion:
- 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 theFork
model and a dark brown one to thePouch
model. - 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 thepouch
model a child of this object, setting its position to0.5
on the X axis and0
on the Y and Z axes. This will make the pouch appear in front of the current bird without having ...
- Name the first
Get Unity Android Game Development by Example Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.