godot/servers/physics_2d
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
..
godot_area_2d.cpp Use Callable in Area monitor callback 2021-11-01 21:53:17 -06:00
godot_area_2d.h Use Callable in Area monitor callback 2021-11-01 21:53:17 -06:00
godot_area_pair_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_area_pair_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_body_2d.cpp Expose local center of mass in physics servers 2021-11-08 16:17:57 -07:00
godot_body_2d.h Expose local center of mass in physics servers 2021-11-08 16:17:57 -07:00
godot_body_direct_state_2d.cpp Expose local center of mass in physics servers 2021-11-08 16:17:57 -07:00
godot_body_direct_state_2d.h Expose local center of mass in physics servers 2021-11-08 16:17:57 -07:00
godot_body_pair_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_body_pair_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_broad_phase_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_broad_phase_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_broad_phase_2d_bvh.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_broad_phase_2d_bvh.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_object_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_object_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_solver_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_solver_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_solver_2d_sat.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_collision_solver_2d_sat.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_constraint_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_joints_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_joints_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_physics_server_2d.cpp Use Callable in Area monitor callback 2021-11-01 21:53:17 -06:00
godot_physics_server_2d.h Use Callable in Area monitor callback 2021-11-01 21:53:17 -06:00
godot_shape_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_shape_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_space_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_space_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_step_2d.cpp Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
godot_step_2d.h Rename Godot Physics classes from *SW to Godot* 2021-10-18 17:01:10 -07:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00