From 16fba6b0ffa24ea1b74ace119d2728f4e7ddbb67 Mon Sep 17 00:00:00 2001 From: manik2607 Date: Tue, 8 Oct 2024 00:17:54 +0530 Subject: [PATCH] Add 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 ca1948e8e112..d58ea9487ec6 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 [code]true[/code] if the PhysicsBone3D is allowed to simulate physics. + Returns [code]true[/code] 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.