diff options
author | Camille Mohr-Daurat <pouleyKetchoup@gmail.com> | 2021-09-06 11:31:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 11:31:15 -0700 |
commit | b277c8828089156682abe09b4d0d8077b7298bd2 (patch) | |
tree | 3a1d5096b27926ffb19169f96558e75ee448ed85 /doc/classes/PhysicsDirectBodyState2D.xml | |
parent | e1ae2708ee52f8a0b361ecffd8567f304fad7f76 (diff) | |
parent | 82ea2a7045e336bf4ce17358e2057558f89c3ac0 (diff) |
Merge pull request #49610 from nekomatata/center-of-mass-calculation
Proper support for custom mass properties in 2D/3D physics bodies
Diffstat (limited to 'doc/classes/PhysicsDirectBodyState2D.xml')
-rw-r--r-- | doc/classes/PhysicsDirectBodyState2D.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/PhysicsDirectBodyState2D.xml b/doc/classes/PhysicsDirectBodyState2D.xml index 4c6adfca32..8698fbec61 100644 --- a/doc/classes/PhysicsDirectBodyState2D.xml +++ b/doc/classes/PhysicsDirectBodyState2D.xml @@ -155,6 +155,9 @@ <member name="angular_velocity" type="float" setter="set_angular_velocity" getter="get_angular_velocity"> The body's rotational velocity. </member> + <member name="center_of_mass" type="Vector2" setter="" getter="get_center_of_mass"> + The body's center of mass. + </member> <member name="inverse_inertia" type="float" setter="" getter="get_inverse_inertia"> The inverse of the inertia of the body. </member> |