By Lawrence
5 minutes
5 minutes
Put a Car on It
The road moves and the car is bolted to the origin. That is a screensaver with a shadow on it. The obvious next move — give the box a velocity and point it with the arrow keys — produces a walking character wearing a car's mesh: it goes exactly where you press, stops the instant you let go, and turns on the spot. A car does none of those things, and the reason is one lag.
Add the KeyboardInput entity and CarDrive
Two edits. A bare entity that publishes keystrokes onto the bus, and a drive law on the box you already have:
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.
$9one-time
=