mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #54134 from nekomatata/body-center-of-mass-local
Expose local center of mass in physics servers
This commit is contained in:
commit
c6062cd93e
16 changed files with 30 additions and 6 deletions
|
@ -48,6 +48,7 @@ public:
|
|||
virtual real_t get_total_linear_damp() const = 0;
|
||||
|
||||
virtual Vector3 get_center_of_mass() const = 0;
|
||||
virtual Vector3 get_center_of_mass_local() const = 0;
|
||||
virtual Basis get_principal_inertia_axes() const = 0;
|
||||
virtual real_t get_inverse_mass() const = 0; // get the mass
|
||||
virtual Vector3 get_inverse_inertia() const = 0; // get density of this body space
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue