Wednesday 15 February 2012

Ball Directions

The ball directions are controlled by vectors:
   balls[n].velocity.set(xvector, y vector)


It is possible to set these vectors to control the speed and direction of the balls.  Only the velocity of the cue ball needs to be set, the other balls will have a velocity of zero until the cue ball collides with them.

No comments:

Post a Comment