summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2023-02-27 10:36:23 +1100
committerBastiaan Olij <mux213@gmail.com>2023-02-27 10:56:07 +1100
commit12120985c310e6cfd64634c9d2f5f57c6eea2059 (patch)
tree91a4fdcefcdeba1ca77298f6d35ccf172d15428e
parent0cd148313213e2923004be65bafd6a3781c917ec (diff)
Steering on VehicleBody is in radians while interface is in degrees. Improved documentation to clear this up.
-rw-r--r--doc/classes/VehicleBody3D.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/VehicleBody3D.xml b/doc/classes/VehicleBody3D.xml
index 9f905c0ec5..6813c88940 100644
--- a/doc/classes/VehicleBody3D.xml
+++ b/doc/classes/VehicleBody3D.xml
@@ -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>