Merge pull request #74009 from BastiaanOlij/fix_vehiclebody_steering

Steering on VehicleBody is in radians in code, degrees in UI, adjusted property tooltip to clear this up
This commit is contained in:
Rémi Verschelde 2023-02-27 08:24:37 +01:00
commit dd54fefeff
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -23,7 +23,8 @@
</member> </member>
<member name="mass" type="float" setter="set_mass" getter="get_mass" overrides="RigidBody3D" default="40.0" /> <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"> <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> </member>
</members> </members>
</class> </class>