godot/servers/physics_2d
Ferenc Arn f271591ac2 Various corrections in 2D math.
This is the follow up for the 2D changes mentioned in PR #6865. It fixes various mistakes regarding the order of matrix indices, order of transformation operations, usage of atan2 function and ensures that the sense of rotation is compatible with a left-handed coordinate system with Y-axis pointing down (which flips the sense of rotations along the z-axis). Also replaced float with real_t, and tried to make use of Matrix32 methods rather than accessing its elements directly.

Affected code in the Godot code base is also fixed in this commit.

The user code using functions involving angles such as atan2, angle_to, get_rotation, set_rotation will need to be updated to conform with the new behavior. Furthermore, the sign of the rotation angles in existing 2D scene files need to be flipped as well.
2017-01-10 10:14:20 -06:00
..
area_2d_sw.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
area_2d_sw.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
area_pair_2d_sw.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
area_pair_2d_sw.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
body_2d_sw.cpp Various corrections in 2D math. 2017-01-10 10:14:20 -06:00
body_2d_sw.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
body_pair_2d_sw.cpp Various corrections in 2D math. 2017-01-10 10:14:20 -06:00
body_pair_2d_sw.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
broad_phase_2d_basic.cpp Merge remote-tracking branch 'origin/gles3' into gles3-on-master 2017-01-02 21:52:26 +01:00
broad_phase_2d_basic.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
broad_phase_2d_hash_grid.cpp -Changed most project settings in the engine, so they have major and minor categories. 2017-01-05 09:16:00 -03:00
broad_phase_2d_hash_grid.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
broad_phase_2d_sw.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
broad_phase_2d_sw.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
collision_object_2d_sw.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
collision_object_2d_sw.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
collision_solver_2d_sat.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
collision_solver_2d_sat.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
collision_solver_2d_sw.cpp Various corrections in 2D math. 2017-01-10 10:14:20 -06:00
collision_solver_2d_sw.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
constraint_2d_sw.h Merge remote-tracking branch 'origin/gles3' into gles3-on-master 2017-01-02 21:52:26 +01:00
joints_2d_sw.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
joints_2d_sw.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
physics_2d_server_sw.cpp -Changed most project settings in the engine, so they have major and minor categories. 2017-01-05 09:16:00 -03:00
physics_2d_server_sw.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
physics_2d_server_wrap_mt.cpp -Changed most project settings in the engine, so they have major and minor categories. 2017-01-05 09:16:00 -03:00
physics_2d_server_wrap_mt.h -Changed most project settings in the engine, so they have major and minor categories. 2017-01-05 09:16:00 -03:00
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
shape_2d_sw.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
shape_2d_sw.h Various corrections in 2D math. 2017-01-10 10:14:20 -06:00
space_2d_sw.cpp Various corrections in 2D math. 2017-01-10 10:14:20 -06:00
space_2d_sw.h ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant. 2017-01-02 23:03:46 -03:00
step_2d_sw.cpp Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00
step_2d_sw.h Welcome in 2017, dear changelog reader! 2017-01-01 22:03:33 +01:00