Steering on VehicleBody is in radians while interface is in degrees. Improved documentation to clear this up.

This commit is contained in:
Bastiaan Olij
2023-02-27 10:36:23 +11:00
parent 0cd1483132
commit 12120985c3

View File

@ -23,7 +23,8 @@
</member>
<member name="mass" type="float" setter="set_mass" getter="get_mass" overrides="RigidBody3D" default="40.0" />
<member name="steering" type="float" setter="set_steering" getter="get_steering" default="0.0">
The steering angle for the vehicle, in radians. Setting this to a non-zero value will result in the vehicle turning when it's moving. Wheels that have [member VehicleWheel3D.use_as_steering] set to [code]true[/code] will automatically be rotated.
The steering angle for the vehicle. Setting this to a non-zero value will result in the vehicle turning when it's moving. Wheels that have [member VehicleWheel3D.use_as_steering] set to [code]true[/code] will automatically be rotated.
[b]Note:[/b] This property is edited in the inspector in degrees. In code the property is set in radians.
</member>
</members>
</class>