e9896b17a9
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. |
||
---|---|---|
.. | ||
a_star.cpp | ||
a_star.h | ||
aabb.cpp | ||
aabb.h | ||
audio_frame.cpp | ||
audio_frame.h | ||
bsp_tree.cpp | ||
bsp_tree.h | ||
camera_matrix.cpp | ||
camera_matrix.h | ||
face3.cpp | ||
face3.h | ||
geometry.cpp | ||
geometry.h | ||
math_2d.cpp | ||
math_2d.h | ||
math_defs.h | ||
math_funcs.cpp | ||
math_funcs.h | ||
matrix3.cpp | ||
matrix3.h | ||
octree.h | ||
plane.cpp | ||
plane.h | ||
quat.cpp | ||
quat.h | ||
quick_hull.cpp | ||
quick_hull.h | ||
SCsub | ||
transform.cpp | ||
transform.h | ||
triangle_mesh.cpp | ||
triangle_mesh.h | ||
triangulate.cpp | ||
triangulate.h | ||
vector3.cpp | ||
vector3.h |