Baltor Get started

Gallery / Godot components

Raycast suspension vehicle for arcade driving

In your harnessGodot componentMIT

Drive a RigidBody3D on raycast wheels: spring-damper suspension per wheel, drive force on driven wheels, steering on front wheels, lateral grip and rolling resistance, with a ride height independent of mass.

Files, names only

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • baltor_test.gd
  • component.json
  • example.tscn
  • inspect_gdscript.py
  • raycast_vehicle_3d.gd
  • run_tests.gd
  • test_package.py
  • tests/test_raycast_vehicle_3d.gd
  • verification/native.json

Full files in your harness.

What it takes and gives

Class
BaltorRaycastVehicle, extends RigidBody3D
Methods
suspension_force(compression: float, compression_speed: float, stiffness: float, damping: float, mass_share: float) -> float; lateral_force(side_speed: float, grip: float, mass_share: float) -> float; set_controls(throttle: float, steer: float) -> void; get_wheel_count() -> int; is_wheel_grounded(index: int) -> bool; get_wheel_compression(index: int) -> float; grounded_wheel_count() -> int;…
Signals
airborne_changed
Exports
wheel_points, steering_wheel_count, driven_wheels, rest_length, wheel_radius, spring_stiffness, spring_damping, engine_acceleration and 5 more
Placement
res://baltor/godot_components/raycast_vehicle_3d/

Limits. Arcade model: no engine torque curve, gears, tire slip curves or differential; wheel meshes are not moved. Grip is linear in sideways speed. The chassis collision shape must sit above the wheel points. Tested on flat ground in headless Godot physics. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.

Details

Kind
Godot component
Engine
Godot 4.3 or later
Files
12 files, 84.1 KB
Licence
MIT
Declared effects
reads files, runs commands
Checked with
Godot 4.7.2, headless
Checks
godot parse check only, godot gdscript tests, godot tests reject gutted component, godot editor import, godot contract reflection, godot example scene, godot readme usage compiles
Techniques
raycast suspension, Hooke spring with viscous damping, lateral friction impulse model
Tags
vehicle, car, suspension, raycast, rigidbody3d, arcade racing, physics
Identity
library.supply.creative_originals.5d146a90bca382e8ef6f162b.5b9933257021d815
Version
5b9933257021d815dbf624226e301ec5170b8d56d36b9fe11b5deb6981c3ed70

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.