You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +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:
@@ -49,6 +49,7 @@ public:
|
||||
virtual real_t get_total_angular_damp() const = 0; // get density of this body space/area
|
||||
|
||||
virtual Vector2 get_center_of_mass() const = 0;
|
||||
virtual Vector2 get_center_of_mass_local() const = 0;
|
||||
virtual real_t get_inverse_mass() const = 0; // get the mass
|
||||
virtual real_t get_inverse_inertia() const = 0; // get density of this body space
|
||||
|
||||
|
||||
Reference in New Issue
Block a user