Lab 7

Using the fisica library, create a vehicle with wheels. Support some key presses, including at least LEFT and RIGHT, which make the vehicle move left and right. Create a ground on which to drive; the more interesting the better! (Can you create some jumps or loops?)

You must apply a torque on LEFT/RIGHT keypress, not setPosition or setVelocity or anything like that. We’re simulating a vehicle here!

CSCI 111 material by Joshua Eckroth is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. Source code for this website available at GitHub.