From ad825a36ec233155feaba3228ce4af3a70f9ee23 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 1 Aug 2025 00:38:33 +0200 Subject: [PATCH] Clarify the behavior of `RigidBody.CENTER_OF_MASS_MODE_AUTO` --- doc/classes/RigidBody2D.xml | 2 +- doc/classes/RigidBody3D.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/RigidBody2D.xml b/doc/classes/RigidBody2D.xml index 78c6ce57f64..c261312e2fc 100644 --- a/doc/classes/RigidBody2D.xml +++ b/doc/classes/RigidBody2D.xml @@ -140,7 +140,7 @@ The body's custom center of mass, relative to the body's origin position, when [member center_of_mass_mode] is set to [constant CENTER_OF_MASS_MODE_CUSTOM]. This is the balanced point of the body, where applied forces only cause linear acceleration. Applying forces outside of the center of mass causes angular acceleration. - When [member center_of_mass_mode] is set to [constant CENTER_OF_MASS_MODE_AUTO] (default value), the center of mass is automatically computed. + When [member center_of_mass_mode] is set to [constant CENTER_OF_MASS_MODE_AUTO] (default value), the center of mass is automatically determined, but this does not update the value of [member center_of_mass]. Defines the way the body's center of mass is set. diff --git a/doc/classes/RigidBody3D.xml b/doc/classes/RigidBody3D.xml index 0d98755e419..75bcfce87ad 100644 --- a/doc/classes/RigidBody3D.xml +++ b/doc/classes/RigidBody3D.xml @@ -146,7 +146,7 @@ The body's custom center of mass, relative to the body's origin position, when [member center_of_mass_mode] is set to [constant CENTER_OF_MASS_MODE_CUSTOM]. This is the balanced point of the body, where applied forces only cause linear acceleration. Applying forces outside of the center of mass causes angular acceleration. - When [member center_of_mass_mode] is set to [constant CENTER_OF_MASS_MODE_AUTO] (default value), the center of mass is automatically computed. + When [member center_of_mass_mode] is set to [constant CENTER_OF_MASS_MODE_AUTO] (default value), the center of mass is automatically determined, but this does not update the value of [member center_of_mass]. Defines the way the body's center of mass is set.