I'm creating a 3d billiard game and I want the ball to have a rolling effect (e.g. Texture appears to be rolling). The balls are moving only on the X-Z plane.
I have tried to find a perpendicular vector to the direction of moving ball.
How can I make the ball roll around this vector if it is not paralle to the X,Z plane? and
How do I calculate the angle of rotation?
Btw a sample code may be easier to understand.