1
General / Re: Not understanding the physics of moving particle?
« on: May 18, 2014, 04:43:55 am »
If you are applying a constant velocity (or moving the ball every update), invert the axis that it bounces off of.
Hits a wall on the left, inverts x to go right, gets the ceiling, inverts y to go down and so on...
For detecting collision, there is a collision class, just google it up
Hits a wall on the left, inverts x to go right, gets the ceiling, inverts y to go down and so on...
For detecting collision, there is a collision class, just google it up
