Wheel Collider
Last updated
Last updated
Access information about a Wheel Collider.
Wheel Collider
Wheel Collider
Reference to a Wheel Collider.
Outputs:
Rpm
Float
Current wheel axle rotation speed, in rotations per minute.
Steer Angle
Float
Steering angle in degrees, always around the local y-axis.
Sprung Mass
Float
The mass supported by this Wheel Collider.
Is Grounded
Boolean
Indicates whether the wheel currently collides with something.
Ground Hit Position
Vector3
The point of contact between the wheel and the ground.
Wheel Position
Vector3
The position of the wheel.
Wheel Rotation
Quaternion
The rotation of the wheel.
There are multiple nodes that you can use to set properties of a Wheel Collider. For more information, refer to the WheelCollider page in the Unity documentation.
The set nodes for a Wheel Collider have a similar arrangement of inputs and outputs, as described in the following sections.
Inputs:
Enter
Flow
Flow to activate the node.
Wheel Collider
Wheel Collider
Reference to a Wheel Collider.
<property>
Float [editable]
The value to set for the chosen property.
Outputs:
Exit
Flow
Continue the activating flow.
Available nodes:
Set Brake Torque
Float [editable]
Brake torque expressed in Newton metres.
Set Motor Torque
Float [editable]
Motor torque on the wheel axle expressed in Newton metres. Positive or negative depending on direction.
Set Steer Angle
Float [editable]
Steering angle in degrees, always around the local y-axis.