Inverse Kinematic Pool Game
Inverse Kinematics
The inverse kinematic algorithm uses the jacobian transpose. There are two degrees of free done in the shoulder and 1 for the elbow. Initially I wanted to create my own vector and matrix classes, because I did not like the way VrMath from RayTrace 2.0 was setup, but I had trouble with using accesors in operators, so I gave up and resorted to VrMath from RayTrace 2.0
How To Play
Move the cue stick around to line it up with the balls. Then grab onto the cue stick with the hand. When you're holding the cue stick, hit the bal.
Controls
q - quit
Esc - quit
arrow keys - rotate view
home/end - zoom in/out
g - grab the cue stick step by step
h - to hit the ball (only if hand is close enough)
1 - select joint 1
2 - select joint 2
3 - select joint 3
+/- - change angle of joint
r - reset geometry
v - reset view
Mouse - Moves around the cue Stick
The cue ball is in the middle and an arm is represented by 3 red spheres and triangles connecting them. These triangles are related to way the joint rotates. The mouse will move the stick around and pressing g multiple times will move the hand toward the stick.
