Monday, 10 February 2014

Physics project

Next task I got for my module was to create shooting script. Most of it I remembered how to do from the workshop last week but I also used Unity official tutorial to refresh my memory and make sure I am writing script correctly. each brick in the wall as well as the bullet has a rigidbody component to make sure it acts under physics. The final effect is that when you press mouse button bullet is created in front of the player and is then shot at the direction mouse is pointing, and then after 5 seconds object is destroyed in order not to have too many clones of it.

Some screenshots:



No comments:

Post a Comment