I'm doing 2D/3D ball collision simulation. All the physics are done but I can't figure out the rotation. Now I got it rotating around x axis, but its not pretty.
I have all that I need, I hope:Both ball position on impact, their outgoing vector (represented by x,y,z), ball diameter, their speed (which is slowed down periodically), balls current rotation.
I tried to accomplish that with rotation matrix, but I failed.
Hope you can help me. Thank you!