summaryrefslogtreecommitdiff
path: root/tools/editor/io_plugins
diff options
context:
space:
mode:
authorFerenc Arn <tagcup@yahoo.com>2017-01-05 23:27:48 -0600
committerFerenc Arn <tagcup@yahoo.com>2017-01-10 10:14:20 -0600
commitf271591ac22bd07e1b2316448dd6e9af879c218f (patch)
tree575a387820aeaefa1792a294ac2ebbd96825c809 /tools/editor/io_plugins
parent99ceddd11ef652a3b8e6bf5d09dcc519d957ce14 (diff)
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.
Diffstat (limited to 'tools/editor/io_plugins')
0 files changed, 0 insertions, 0 deletions