godot/core/math
tagcup e9896b17a9 Restore the behavior of Spatial rotations recently changed in c1153f5.
That change was borne out of a confusion regarding the meaning of "local" in #14569.

Affine transformations in Spatial simply correspond to affine operations of its Transform. Such operations take place in a coordinate system that is defined by the parent Spatial. When there is no parent, they correspond to operations in the global coordinate system.
This coordinate system, which is relative to the parent, has been referred to as the local coordinate system in the docs so far, but this sloppy language has apparently confused some users, making them think that the local coordinate system refers to the one whose axes are "painted" on the Spatial node itself.

To avoid such conceptual conflations and misunderstandings in the future, the parent-relative local system is now referred to as "parent-local", and the object-relative local system is called "object-local" in the docs.

This commit adds the functionality "requested" in #14569, not by changing how rotate/scale/translate works, but by adding new rotate_object_local, scale_object_local and translate_object_local functions. Also, for completeness, there is now global_scale.

This commit also updates another part of the docs regarding the rotation property of Spatial, which also leads to confusion among some users.
2017-12-27 16:40:49 -05:00
..
a_star.cpp Add missing parameter names 2017-12-25 21:19:56 +07:00
a_star.h Style: Apply new clang-format 5.0 style to all files 2017-12-07 08:02:00 +01:00
aabb.cpp Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
aabb.h Style: Apply new clang-format 5.0 style to all files 2017-12-07 08:02:00 +01:00
audio_frame.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
audio_frame.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
bsp_tree.cpp Style: Apply new clang-format 5.0 style to all files 2017-12-07 08:02:00 +01:00
bsp_tree.h Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
camera_matrix.cpp Forgot to apply oversampling to Y 2017-12-03 22:32:42 +11:00
camera_matrix.h Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
face3.cpp Style: Apply new clang-format 5.0 style to all files 2017-12-07 08:02:00 +01:00
face3.h Style: Apply clang-format again on all files 2017-12-07 08:02:00 +01:00
geometry.cpp Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
geometry.h Dead code tells no tales 2017-08-27 22:13:45 +02:00
math_2d.cpp Rect2: add function returning same rect with positive w and h 2017-11-28 00:41:29 +07:00
math_2d.h Fixes grow_margin not working at all 2017-12-21 23:53:31 +01:00
math_defs.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
math_funcs.cpp Added new wrap functions 2017-10-13 11:10:45 +03:00
math_funcs.h Style: Apply new clang-format 5.0 style to all files 2017-12-07 08:02:00 +01:00
matrix3.cpp Restore the behavior of Spatial rotations recently changed in c1153f5. 2017-12-27 16:40:49 -05:00
matrix3.h Restore the behavior of Spatial rotations recently changed in c1153f5. 2017-12-27 16:40:49 -05:00
octree.h Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
plane.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
plane.h Style: Apply new clang-format 5.0 style to all files 2017-12-07 08:02:00 +01:00
quat.cpp Dead code tells no tales 2017-08-27 22:13:45 +02:00
quat.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
quick_hull.cpp Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
quick_hull.h Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
transform.cpp Style: Apply new clang-format 5.0 style to all files 2017-12-07 08:02:00 +01:00
transform.h Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
triangle_mesh.cpp Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
triangle_mesh.h Rename Rect3 to AABB. 2017-11-17 11:01:41 -05:00
triangulate.cpp Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
triangulate.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
vector3.cpp Dead code tells no tales 2017-08-27 22:13:45 +02:00
vector3.h Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00