Hugo Locurcio 2a962929f3 Update demo files for Godot 4.2.1 (#1013) | il y a 9 mois | |
---|---|---|
.. | ||
car_select | il y a 1 an | |
screenshots | il y a 1 an | |
town | il y a 9 mois | |
vehicles | il y a 9 mois | |
.gitattribute | il y a 6 ans | |
README.md | il y a 1 an | |
default_env.tres | il y a 1 an | |
icon.webp | il y a 1 an | |
icon.webp.import | il y a 1 an | |
project.godot | il y a 9 mois | |
spedometer.gd | il y a 1 an |
This is a demo implementing different types of trucks of varying complexity using vehicle physics.
Controls:
On mobile platforms, the vehicle automatically accelerates. Touch the left and right edges of the screen to steer. Touch the middle of the screen to brake/reverse (this also temporarily stops acceleration).
Language: GDScript
Renderer: Forward+ on desktop, Mobile on mobile
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/524
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.