godot/doc
PouleyKetchoupp fc8c766ef9 Expose local center of mass in physics servers
Center of mass in body's local space is more useful than the transformed
one in some cases, like drawing its position for debug.

It's especially useful to get the generated local center of mass when
in auto mode (by default).

Physics Server BODY_PARAM_CENTER_OF_MASS:
Now always returns the local center of mass, instead of setting a local
center of mass and getting a transformed one.
This causes compatibility breaking, but it makes more sense for the
parameter to be consistent between getter and setter.

Direct Body State:
There are now two properties, because both of them can be useful in
different situations.
center_of_mass: relative position in global coordinates (same as before)
center_of_mass_local: position in local coordinates
2021-11-08 16:17:57 -07:00
..
classes Expose local center of mass in physics servers 2021-11-08 16:17:57 -07:00
tools Rename "makerst.py" to "make_rst.py" 2021-10-24 01:58:59 -05:00
translations i18n: Sync classref translations with Weblate 2021-11-03 15:06:09 +01:00
Doxyfile Replace HTTP links with HTTPS for sites with HTTPS versions 2021-08-22 20:13:11 -05:00
Makefile Rename "makerst.py" to "make_rst.py" 2021-10-24 01:58:59 -05:00