Proper support for custom mass properties in 2D/3D physics bodies
Changes: -Added support for custom inertia and center of mass in 3D -Added support for custom center of mass in 2D -Calculated center of mass from shapes in 2D (same as in 3D) -Fixed mass properties calculation with disabled shapes in 2D/3D -Removed first_integration which is not used in 2D and doesn't seem to make a lot of sense (prevents omit_force_integration to work during the first frame) -Support for custom inertia on different axes for RigidBody3D
This commit is contained in:
@@ -157,6 +157,7 @@
|
||||
The body's rotational velocity.
|
||||
</member>
|
||||
<member name="center_of_mass" type="Vector3" setter="" getter="get_center_of_mass">
|
||||
The body's center of mass.
|
||||
</member>
|
||||
<member name="inverse_inertia" type="Vector3" setter="" getter="get_inverse_inertia">
|
||||
The inverse of the inertia of the body.
|
||||
|
||||
Reference in New Issue
Block a user