Presentation is loading. Please wait.

Presentation is loading. Please wait.

Driving Land Vehicle Game Programming Fall 2013. Content Kinematic maneuver Dynamic maneuver.

Similar presentations


Presentation on theme: "Driving Land Vehicle Game Programming Fall 2013. Content Kinematic maneuver Dynamic maneuver."— Presentation transcript:

1 Driving Land Vehicle Game Programming Fall 2013

2 Content Kinematic maneuver Dynamic maneuver

3

4

5

6

7 Remark No dynamics Position of vehicle implicitly defined in modelview matrix Difficult to compute bounding boxes

8 Dynamic Maneuver Assume the vehicle is a particle The power and angle of thrust can be controlled Drag is always opposite to the velocity (no drag is motionless) Integrate equations of motion by Euler’s method thrust = Power Rot (  ) v x drag = -k v  force = thrust + drag

9 Using Virtual Keyboard UP/Down: increase/decrease power by a ratio Home: start engine with power = 1.0 Space: stop engine with power = 0.0 Left/Right: turning (next page) Force_gas: the thrust force exerted by the power

10 Engine Force Power: controlled by up, down, home, space Theta_thrust: controlled by tank orientation (theta), left and right

11 Tank Rendering pos  vel Force_gas x z


Download ppt "Driving Land Vehicle Game Programming Fall 2013. Content Kinematic maneuver Dynamic maneuver."

Similar presentations


Ads by Google