diff options
author | Steve Szilágyi <ryd.spes@gmail.com> | 2021-12-08 12:10:56 +0100 |
---|---|---|
committer | rydergaming <ryd.spes@gmail.com> | 2021-12-10 13:22:02 +0100 |
commit | 0c352407d8e7d3c8eb3108a734b5a9746ea14ad7 (patch) | |
tree | 04e12f749e11539027db6069ffec50409f1a1e36 /doc/classes | |
parent | db70957a5ffdbf6b1ea3aee8dd399581be9d1f01 (diff) |
VehicleWheel can now return the surface it's colliding with.
Fixed PR issues.
Update vehicle_body_3d.cpp
Apply suggestions from code review
Co-authored-by: Camille Mohr-Daurat <pouleyKetchoup@gmail.com>
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/VehicleWheel3D.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/VehicleWheel3D.xml b/doc/classes/VehicleWheel3D.xml index 951f4f8275..17a9e9f7da 100644 --- a/doc/classes/VehicleWheel3D.xml +++ b/doc/classes/VehicleWheel3D.xml @@ -11,6 +11,13 @@ <link title="3D Truck Town Demo">https://godotengine.org/asset-library/asset/524</link> </tutorials> <methods> + <method name="get_contact_body" qualifiers="const"> + <return type="Node3D" /> + <description> + Returns the contacting body node if valid in the tree, as [Node3D]. At the moment, [GridMap] is not supported so the node will be always of type [PhysicsBody3D]. + Returns [code]null[/code] if the wheel is not in contact with a surface, or the contact body is not a [PhysicsBody3D]. + </description> + </method> <method name="get_rpm" qualifiers="const"> <return type="float" /> <description> |