godot-demo-projects/3d/truck_town
Hugo Locurcio 55934859e3
Add camera selection to Truck Town (#820)
2023-01-17 21:39:18 +01:00
..
car_select Update most demos for Godot 4.0.beta10 (#782) 2023-01-05 16:50:17 +01:00
screenshots Update most demos for Godot 4.0.beta10 (#782) 2023-01-05 16:50:17 +01:00
town Add camera selection to Truck Town (#820) 2023-01-17 21:39:18 +01:00
vehicles Add camera selection to Truck Town (#820) 2023-01-17 21:39:18 +01:00
.gitattribute
README.md Add camera selection to Truck Town (#820) 2023-01-17 21:39:18 +01:00
default_env.tres Update most demos for Godot 4.0.beta10 (#782) 2023-01-05 16:50:17 +01:00
icon.png Clean up and fix Truck Town 2022-08-30 13:21:30 -04:00
icon.png.import Clean up and fix Truck Town 2022-08-30 13:21:30 -04:00
project.godot Add camera selection to Truck Town (#820) 2023-01-17 21:39:18 +01:00
spedometer.gd Update most demos for Godot 4.0.beta10 (#782) 2023-01-05 16:50:17 +01:00

README.md

Truck Town

This is a demo implementing different types of trucks of varying complexity using vehicle physics.

Controls:

  • Up Arrow, W, Gamepad Right Trigger, Gamepad A/Cross: Accelerate
  • Down Arrow, S, Gamepad Left Trigger, Gamepad B/Circle : Brake
  • Left Arrow, Gamepad Left Stick: Steer left
  • Right Arrow, Gamepad Left Stick: Steer right
  • U, Gamepad Select, left-click speedometer: Change speedometer unit (m/s, km/h, mph)
  • C, Gamepad Y/Triangle: Change camera (exterior, interior, top-down)
  • Escape, Gamepad D-Pad Up: Go back to menu (press again to exit)

Language: GDScript

Renderer: Forward Plus

Check out this demo on the asset library: https://godotengine.org/asset-library/asset/524

How does it work?

The base vehicle uses a VehicleBody node. The trailer truck is tied together using a ConeJointTwist node, and the tow truck is tried together using a chain made of RigidBody nodes which are pinned together using PinJoint nodes.

Screenshots

Screenshot