From 271a190bbdd680c8a3dfc9b732cf4b896849a488 Mon Sep 17 00:00:00 2001 From: manik2607 Date: Sun, 29 Sep 2024 12:31:12 +0530 Subject: [PATCH] Added missing descriptions to PhysicalBone3D class. --- doc/classes/PhysicalBone3D.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/classes/PhysicalBone3D.xml b/doc/classes/PhysicalBone3D.xml index ca1948e8e11..e8ca6cc333c 100644 --- a/doc/classes/PhysicalBone3D.xml +++ b/doc/classes/PhysicalBone3D.xml @@ -21,6 +21,9 @@ + Applies a directional impulse without affecting rotation. + An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_integrate_forces" functions otherwise). + This is equivalent to using [method apply_impulse] at the body's center of mass. @@ -28,21 +31,27 @@ + Applies a positioned impulse to the PhysicsBone3D. + An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_integrate_forces" functions otherwise). + [param position] is the offset from the PhysicsBone3D origin in global coordinates. + Returns the unique identifier of the PhysicsBone3D. + Returns whether the PhysicsBone3D is set to simulate physics. + Checks if the PhysicsBone3D is currently simulating physics. @@ -108,16 +117,22 @@ In this mode, the body's damping value replaces any value set in areas or the default value. + No joint is applied to the PhysicsBone3D. + A pin joint is applied to the PhysicsBone3D. + A cone joint is applied to the PhysicsBone3D. + A hinge joint is applied to the PhysicsBone3D. + A slider joint is applied to the PhysicsBone3D. + A 6 degrees of freedom joint is applied to the PhysicsBone3D.