26 lines
861 B
Markdown
26 lines
861 B
Markdown
# Truck Town
|
|
|
|
This is a demo implementing different types of trucks of
|
|
varying complexity using vehicle physics.
|
|
|
|
Language: GDScript
|
|
|
|
Renderer: Vulkan Clustered
|
|
|
|
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`](https://docs.godotengine.org/en/latest/classes/class_vehiclebody.html)
|
|
node. The trailer truck is tied together using a
|
|
[`ConeJointTwist`](https://docs.godotengine.org/en/latest/classes/class_conetwistjoint.html)
|
|
node, and the tow truck is tried together using a chain made of
|
|
[`RigidBody`](https://docs.godotengine.org/en/latest/classes/class_rigidbody.html)
|
|
nodes which are pinned together using
|
|
[`PinJoint`](https://docs.godotengine.org/en/latest/classes/class_pinjoint.html) nodes.
|
|
|
|
## Screenshots
|
|
|
|
![Screenshot](screenshots/truck_town.webp)
|