how would I create say backspin on a cue ball.. trying a pool sim: here is a demonstration :
[video=youtube]4FtPbgWt73k&ab[/video]
tis an old video and since has changed, I coded a 3d game engine which has undergone many changes but feel confident enough to now actually make something with it, the damping is now set to 0.5 for the pool balls so they actually slow down, the restitution I set to 1.0 on the pool balls and the cushions, friction is set to 0.5 on both the table top and the pool balls, I am shooting the ball in the direction of the compass surrounding the ball of course! the physics world size is set to 20 and gravity to -6 with the mass for the pool balls set at 10
, dunno if all them values are correct but it seems ok, my only problem is the cue ball 'follows through' the shot head on hence i want to add spin to the cue ball! to shoot the ball I am simply saying:
SetObject3DPhysicslinearvelocity( player[playerpointer].id, projectileDirVec, initialSpeed*100 )
Hail to the king, baby!