I need help bouncing a ball off the side a a Pool Table for a game I'm making. Whenever I use
[blocks]
<point in direction( (( 180 <-> <direction> )) )
[/blocks]
it messes up! Please help.
Offline
When it bounces off the cushion on the left or right side of the screen, put:
Point in direction (direction*-1)
Then for the top or bottom cushion:
Point in direction (180-direction)
I think that should work!
Offline
What you're doing there is telling it turn completely around. You need a different formula and it's easiest to do that with x and y velocities instead of direction. Here's what I would do:
Offline