From 97c5fd17a771ec216cbc510e97db7a8f3113692a Mon Sep 17 00:00:00 2001 From: MrSwedish Date: Thu, 3 Mar 2022 18:30:19 +0100 Subject: Add linear_velocity and angular_velocity to PhysicalBone3D --- doc/classes/PhysicalBone3D.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/PhysicalBone3D.xml b/doc/classes/PhysicalBone3D.xml index e7c702aefb..7e8cc91766 100644 --- a/doc/classes/PhysicalBone3D.xml +++ b/doc/classes/PhysicalBone3D.xml @@ -7,6 +7,13 @@ + + + + + Called during physics processing, allowing you to read and safely modify the simulation state for the object. By default, it works in addition to the usual physics behavior, but the [member custom_integrator] property allows you to disable the default behavior and do fully custom force integration for a body. + + @@ -44,6 +51,9 @@ Defines how [member angular_damp] is applied. See [enum DampMode] for possible values. + + The PhysicalBone3D's rotational velocity in [i]radians[/i] per second. + Sets the body's transform. @@ -53,6 +63,9 @@ If [code]true[/code], the body is deactivated when there is no movement, so it will not take part in the simulation until it is awakened by an external force. + + If [code]true[/code], internal force integration will be disabled (like gravity or air friction) for this body. Other than collision response, the body will only move as determined by the [method _integrate_forces] function, if defined. + The body's friction, from [code]0[/code] (frictionless) to [code]1[/code] (max friction). @@ -75,6 +88,9 @@ Defines how [member linear_damp] is applied. See [enum DampMode] for possible values. + + The body's linear velocity in units per second. Can be used sporadically, but [b]don't set this every frame[/b], because physics may run in another thread and runs at a different granularity. Use [method _integrate_forces] as your process loop for precise control of the body state. + The body's mass. -- cgit v1.2.3