Thursday, May 26, 2011

Enabling and Disabling an Object's Physics Controller in ShiVa3D

 

I just realized I never posted this video to my blog!  Mainly because I do this at night and sometimes I let the videos upload while I go to bed.  In this video I disable the physics on the ball and then go about changing the code so that the physics gets re-enabled when the mouse button is clicked.  I also set a boolean flag so that I can tell when the ball is in play -- important for disabling the ability to add more force to the ball after it has been launched.

No comments:

Post a Comment