- #1
dezo
- 3
- 0
Hi,
I'm trying to create a simple pool game. The ball is moving with speed vx along x-axis and vy along y axis. This way I can easily compute the rotation in x and y direction. But how can I compute the rotation when the ball is not moving along any axis? I mean in angle 30 degrees, for example. Because rotating by angle about x-axis followed by rotation by angle along y-axis doesn't give the right result.
Thanks for any suggestions.
http://www.fi.muni.cz/~xkacer/other/ball.png"
I'm trying to create a simple pool game. The ball is moving with speed vx along x-axis and vy along y axis. This way I can easily compute the rotation in x and y direction. But how can I compute the rotation when the ball is not moving along any axis? I mean in angle 30 degrees, for example. Because rotating by angle about x-axis followed by rotation by angle along y-axis doesn't give the right result.
Thanks for any suggestions.
http://www.fi.muni.cz/~xkacer/other/ball.png"
Last edited by a moderator: