From 5d81742dc861819c92fe0e0a35e3b673fe9ecf03 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 11 Dec 2021 17:38:55 +0100 Subject: [PATCH] Document RigidBody2D/3D and particles' angular velocity units --- doc/classes/CPUParticles3D.xml | 6 +++--- doc/classes/ParticlesMaterial.xml | 6 +++--- doc/classes/PhysicsDirectBodyState2D.xml | 4 ++-- doc/classes/PhysicsDirectBodyState3D.xml | 4 ++-- doc/classes/RigidDynamicBody2D.xml | 4 ++-- doc/classes/RigidDynamicBody3D.xml | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/doc/classes/CPUParticles3D.xml b/doc/classes/CPUParticles3D.xml index 83728a807be..da9c63c0f72 100644 --- a/doc/classes/CPUParticles3D.xml +++ b/doc/classes/CPUParticles3D.xml @@ -96,13 +96,13 @@ Minimum angle. - Each particle's angular velocity will vary along this [Curve]. + Each particle's angular velocity (rotation speed) will vary along this [Curve] over its lifetime. - Maximum angular velocity. + Maximum initial angular velocity (rotation speed) applied to each particle in [i]degrees[/i] per second. - Minimum angular velocity. + Minimum initial angular velocity (rotation speed) applied to each particle in [i]degrees[/i] per second. Each particle's animation offset will vary along this [Curve]. diff --git a/doc/classes/ParticlesMaterial.xml b/doc/classes/ParticlesMaterial.xml index ed778af26a2..d2261ed4cc2 100644 --- a/doc/classes/ParticlesMaterial.xml +++ b/doc/classes/ParticlesMaterial.xml @@ -83,13 +83,13 @@ Minimum angle. - Each particle's angular velocity will vary along this [CurveTexture]. + Each particle's angular velocity (rotation speed) will vary along this [CurveTexture] over its lifetime. - Maximum angular velocity. + Maximum initial angular velocity (rotation speed) applied to each particle in [i]degrees[/i] per second. - Minimum angular velocity. + Minimum initial angular velocity (rotation speed) applied to each particle in [i]degrees[/i] per second. Each particle's animation offset will vary along this [CurveTexture]. diff --git a/doc/classes/PhysicsDirectBodyState2D.xml b/doc/classes/PhysicsDirectBodyState2D.xml index fbadfd2702a..9921974c6e8 100644 --- a/doc/classes/PhysicsDirectBodyState2D.xml +++ b/doc/classes/PhysicsDirectBodyState2D.xml @@ -208,7 +208,7 @@ - The body's rotational velocity. + The body's rotational velocity in [i]radians[/i] per second. The body's center of mass position relative to the body's center in the global coordinate system. @@ -223,7 +223,7 @@ The inverse of the mass of the body. - The body's linear velocity. + The body's linear velocity in pixels per second. If [code]true[/code], this body is currently sleeping (not active). diff --git a/doc/classes/PhysicsDirectBodyState3D.xml b/doc/classes/PhysicsDirectBodyState3D.xml index 58c4294d66e..77c99c55b1c 100644 --- a/doc/classes/PhysicsDirectBodyState3D.xml +++ b/doc/classes/PhysicsDirectBodyState3D.xml @@ -215,7 +215,7 @@ - The body's rotational velocity. + The body's rotational velocity in [i]radians[/i] per second. The body's center of mass position relative to the body's center in the global coordinate system. @@ -230,7 +230,7 @@ The inverse of the mass of the body. - The body's linear velocity. + The body's linear velocity in units per second. diff --git a/doc/classes/RigidDynamicBody2D.xml b/doc/classes/RigidDynamicBody2D.xml index 0026c496515..b3644711a02 100644 --- a/doc/classes/RigidDynamicBody2D.xml +++ b/doc/classes/RigidDynamicBody2D.xml @@ -121,7 +121,7 @@ Defines how [member angular_damp] is applied. See [enum DampMode] for possible values. - The body's rotational velocity. + The body's rotational velocity in [i]radians[/i] per second. If [code]true[/code], the body can enter sleep mode when there is no movement. See [member sleeping]. @@ -179,7 +179,7 @@ Defines how [member linear_damp] is applied. See [enum DampMode] for possible values. - The body's linear velocity. + The body's linear velocity in pixels 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. If [code]true[/code], the body cannot rotate. Gravity and forces only apply linear movement. diff --git a/doc/classes/RigidDynamicBody3D.xml b/doc/classes/RigidDynamicBody3D.xml index 3dffdcbf830..16fced737f2 100644 --- a/doc/classes/RigidDynamicBody3D.xml +++ b/doc/classes/RigidDynamicBody3D.xml @@ -127,7 +127,7 @@ Defines how [member angular_damp] is applied. See [enum DampMode] for possible values. - RigidDynamicBody3D's rotational velocity. + The RigidDynamicBody3D's rotational velocity in [i]radians[/i] per second. If [code]true[/code], the body can enter sleep mode when there is no movement. See [member sleeping]. @@ -185,7 +185,7 @@ Defines how [member linear_damp] is applied. See [enum DampMode] for possible values. - The body's linear velocity. 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 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. If [code]true[/code], the body cannot rotate. Gravity and forces only apply linear movement.