summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-12-10 15:52:02 +0100
committerGitHub <noreply@github.com>2021-12-10 15:52:02 +0100
commitf675b6b6237696788df1ad9c1f2d9f3d2b025352 (patch)
treec1ff204bb81270d834e72c43b486f97e61f0f519 /doc
parent7658868616909822b880c6b4c0dba4ae68e823ad (diff)
parent0c352407d8e7d3c8eb3108a734b5a9746ea14ad7 (diff)
Merge pull request #55723 from rydergaming/get-colliding-body-vehiclewheel
VehicleWheel can now return the surface it's colliding with.
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/VehicleWheel3D.xml7
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>