pandemonium_engine/core/math
Relintai 951ae7b11d Backported from godot4: Add the ability to look-at in model-space.
This is a much simpler attempt to solve the same problem as #76060, but
without breaking any compatibility.

* Adds a description of what model space is in the Vector3 enums
(MODEL_* constants). This has the proper axes laid out for imported 3D
assets.
* Adds the option to `look_at` using model_space, which uses
Vector3.MODEL_FRONT as forward vector.

The attempt of this PR is to still break the assumption that there is a
single direction of forward (which is not the case in Godot)
and make it easier to understand where 3D models are facing, as well as
orienting them via look_at.

- reduz

5fdc1232ef

Also bound the new Basis helper methods.
2024-09-30 17:04:00 +02:00
..
a_star.cpp File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
a_star.h Fix unitialized variables in core 2024-02-08 13:43:25 +01:00
aabb.cpp File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
aabb.h Fix AABB.encloses failing on shared upper bound 2024-02-08 14:00:08 +01:00
audio_frame.cpp File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
audio_frame.h File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
basis.cpp Backported from godot4: Add the ability to look-at in model-space. 2024-09-30 17:04:00 +02:00
basis.h Backported from godot4: Add the ability to look-at in model-space. 2024-09-30 17:04:00 +02:00
bsp_tree.cpp File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
bsp_tree.h File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
bvh_abb.h File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
bvh_cull.inc
bvh_debug.inc
bvh_integrity.inc
bvh_logic.inc
bvh_misc.inc
bvh_pair.inc
bvh_public.inc
bvh_refit.inc BVH - fix not refitting upward from leaf nodes 2023-10-02 16:55:52 +02:00
bvh_split.inc BVH - fix axis getting mixed up when split leaf 2023-10-02 16:56:12 +02:00
bvh_structs.inc BVH - fix not refitting upward from leaf nodes 2023-10-02 16:55:52 +02:00
bvh_tree.h File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
bvh.h File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
color_names.inc Ported: Single Compilation Unit build. 2023-07-11 16:07:36 +02:00
color.cpp Backported dome of the codestyle improvements to math types from 3fb36bf395 . 2024-04-06 13:05:32 +02:00
color.h Backported dome of the codestyle improvements to math types from 3fb36bf395 . 2024-04-06 13:05:32 +02:00
convex_hull.cpp File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
convex_hull.h File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
delaunay.h File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
disjoint_set.cpp File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
disjoint_set.h File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
expression.cpp Fix parsing of 4. in Expression 2024-09-20 09:01:03 +02:00
expression.h Added a new method to Expression so it can be used with multiple threads simultenously. 2024-02-25 10:25:46 +01:00
face3.cpp File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
face3.h File copyright header updates pt1. 2023-12-17 22:29:33 +01:00
geometry.cpp Verify GLTF indices to prevent crash with corrupt files 2024-09-07 09:24:37 +02:00
geometry.h Verify GLTF indices to prevent crash with corrupt files 2024-09-07 09:24:37 +02:00
math_defs.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
math_fieldwise.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
math_fieldwise.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
math_funcs.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
math_funcs.h Added exp2 to the Math singleton. 2024-03-18 11:04:37 +01:00
octree_definition.inc Renamed Map to RBMap. 2023-01-15 19:12:50 +01:00
octree.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
plane.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
plane.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
projection.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
projection.h Fix small formatting inconsistencies. 2024-03-01 16:25:19 +01:00
quaternion.cpp Backported dome of the codestyle improvements to math types from 3fb36bf395 . 2024-04-06 13:05:32 +02:00
quaternion.h Backported dome of the codestyle improvements to math types from 3fb36bf395 . 2024-04-06 13:05:32 +02:00
quick_hull.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
quick_hull.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
random_number_generator.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
random_number_generator.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
random_pcg.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
random_pcg.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
rect2.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
rect2.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
rect2i.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
rect2i.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
SCsub
transform_2d.cpp Physics Interpolation - Fix Transform2D::interpolate_with() 2024-07-14 08:08:05 +02:00
transform_2d.h Physics Interpolation - Fix Transform2D::interpolate_with() 2024-07-14 08:08:05 +02:00
transform_interpolator.cpp Physics Interpolation - Fix Transform2D::interpolate_with() 2024-07-14 08:08:05 +02:00
transform_interpolator.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
transform.cpp Backported from godot4: Add the ability to look-at in model-space. 2024-09-30 17:04:00 +02:00
transform.h Backported from godot4: Add the ability to look-at in model-space. 2024-09-30 17:04:00 +02:00
triangle_mesh.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
triangle_mesh.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
triangulate.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
triangulate.h File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
vector2.cpp Add is_zero_approx methods to Vector{2,3} 2024-04-14 16:44:38 +02:00
vector2.h Add is_zero_approx methods to Vector{2,3} 2024-04-14 16:44:38 +02:00
vector2i.cpp Backported dome of the codestyle improvements to math types from 3fb36bf395 . 2024-04-06 13:05:32 +02:00
vector2i.h Backported dome of the codestyle improvements to math types from 3fb36bf395 . 2024-04-06 13:05:32 +02:00
vector3.cpp Add is_zero_approx methods to Vector{2,3} 2024-04-14 16:44:38 +02:00
vector3.h Add is_zero_approx methods to Vector{2,3} 2024-04-14 16:44:38 +02:00
vector3i.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
vector3i.h Fix small formatting inconsistencies. 2024-03-01 16:25:19 +01:00
vector4.cpp Also add is_zero_approx() to Vector4. 2024-04-14 16:59:12 +02:00
vector4.h Also add is_zero_approx() to Vector4. 2024-04-14 16:59:12 +02:00
vector4i.cpp File copyright header updates pt3. 2023-12-17 22:42:34 +01:00
vector4i.h Fix small formatting inconsistencies. 2024-03-01 16:25:19 +01:00
vertex_cache_optimizer.cpp Verify GLTF indices to prevent crash with corrupt files 2024-09-07 09:24:37 +02:00
vertex_cache_optimizer.h Ported: Vertex cache optimizer 2024-02-08 21:35:01 +01:00