--Jia Ming Simon Ma CMPS 162 3D Pool similation --Jia Ming Simon Ma CMPS 162
Description on project Eight-ball game : 1 cue (white) ball 15 object balls (including 7 striped balls 7 solid balls 1 black ball) Two players take turn to hit either solid balls or the striped balls. The ultimate goal is to pocket the black ball after pocketing other 7 assigned color balls.
Ball movement Linear motion Only affected by fiction from the table, so constantly deceleration motion. Follow the rule : v(t) = v(0) + a*t (Velocity = initial Velocity + acceleration * time) Animation of ball motion Keep updating position as well as drawing Time based
Collision 1)Reflection Happens when a ball hits the edge of table. Changes the direction, keeps the magnitude. 2)Ball collision All collisions are elastic Calculate the velocity after Collision For multi-ball collision, do each calculation individually, and sum the result.
Progress Finished: What to do next : 3D rotational camera Table and balls model Initial setup for ball position and UI What to do next : Physics function Collision Ball movement Pocket identification Better graphic Create and map the texture of each pool ball