Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

VehicleWheel3D

Inherits: Node3D < Node < Object

A 3D physics body for a VehicleBody3D that simulates the behavior of a wheel.

Description

A node used as a child of a VehicleBody3D parent to simulate the behavior of one of its wheels. This node also acts as a collider to detect if the wheel is touching a surface.

Note: This class has known issues and isn't designed to provide realistic 3D vehicle physics. If you want advanced vehicle physics, you may need to write your own physics integration using another PhysicsBody3D class.

Tutorials

Properties

float

brake

0.0

float

damping_compression

0.83

float

damping_relaxation

0.88

float

engine_force

0.0

float

steering

0.0

float

suspension_max_force

6000.0

float

suspension_stiffness

5.88

float

suspension_travel

0.2

bool

use_as_steering

false

bool

use_as_traction

false

float

wheel_friction_slip

10.5

float

wheel_radius

0.5

float

wheel_rest_length

0.15

float

wheel_roll_influence

0.1

Methods

Node3D

get_contact_body ( ) const

float

get_rpm ( ) const

float<