summaryrefslogtreecommitdiff
path: root/core/math
AgeCommit message (Collapse)Author
2022-08-27Add linear/cubic angle interpolation to Animation interpolation typeSilc Renew
2022-08-26Rename `str2var` to `str_to_var` and similarMicky
Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too. - `var2str` -> `var_to_str` - `str2var` -> `str_to_var` - `bytes2var` -> `bytes_to_var` - `bytes2var_with_objects` -> `bytes_to_var_with_objects` - `var2bytes` -> `var_to_bytes` - `var2bytes_with_objects` -> `var_to_bytes_with_objects` - `linear2db` -> `linear_to_db` - `db2linear` -> `db_to_linear` - `deg2rad` -> `deg_to_rad` - `rad2deg` -> `rad_to_deg` - `dict2inst` -> `dict_to_inst` - `inst2dict` -> `inst_to_dict`
2022-08-23Merge pull request #64678 from TokageItLab/implement-ease-bakerRémi Verschelde
Fix Quaternion Tween and add Easing baker to AnimationTrackEditor
2022-08-22Replace Array return types with TypedArraykobewi
2022-08-22Merge pull request #60309 from The-O-King/octRémi Verschelde
2022-08-22Merge pull request #63602 from TokageItLab/cubic-interp-timeRémi Verschelde
2022-08-22Fix Quaternion Tween and implement ease bakerSilc Renew
2022-08-20Expose Basis `set_orthogonal_index` method as a GridMap functionrafallus
2022-08-19Make `cubic_interpolate()` consider key time in animationSilc Renew
2022-08-13Octahedral Normal/Tangent CompressionOmar El Sheikh
Implementation of Octahedral normal compression into Godot 4.0
2022-08-09vector4 distance_squared_to and update csharpantonWetzel
2022-08-07Vector4/Vector4i: Add missing methods, tests and fix change of sign operatorHendrik Brucker
2022-08-04Check if the axis is zero / vectors are colinear in Vector3 slerpAaron Franke
2022-08-02Fix consistency of translated/scaled/rotated in Transform2D and Transform3DFabian Keller
2022-08-01Fix `Vector4::min_axis_index` for equal componentsRaul Santos
The documentation says if all components are equal it must return AXIS_W but it was returning AXIS_X.
2022-07-29Make `spherical_cubic_interpolate()` more stableSilc Renew
2022-07-28Merge pull request #63532 from TokageItLab/rename-cubic-slerpRémi Verschelde
2022-07-28Merge pull request #57698 from ↵Rémi Verschelde
bluenote10/feature/rename_translated_to_translated_local
2022-07-28Merge pull request #63378 from nathanfranke/t3d-errorsRémi Verschelde
Add equal checks to Transform3D::looking_at and Transform3D::set_look_at, fixes misleading error.
2022-07-27rename and unify notation for spherical interpolationSilc Renew
2022-07-27Merge pull request #63380 from V-Sekai/fix-cubic-slerp-dotRémi Verschelde
2022-07-27Merge pull request #63463 from KoBeWi/Vector5Rémi Verschelde
Add some missing Vector4 methods
2022-07-26Color: Fix resetting alpha when setting H/S/V separatelyRémi Verschelde
Fixes #63487.
2022-07-26Add some missing Vector4 methodskobewi
2022-07-25add equal checks to Transform3D::looking_at and Transform3D::set_look_atNathan Franke
2022-07-25Fixup BVH debugging statementsRicardo Buring
2022-07-25Fix cubic_slerpSilc 'Tokage' Renew
Co-authored-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> Co-authored-by: Pasi Nuutinmaki <gnssstylist@sci.fi>
2022-07-25Code quality: Fix header guards consistencyRémi Verschelde
Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
2022-07-23Implement Vector4, Vector4i, Projectionreduz
Implement built-in classes Vector4, Vector4i and Projection. * Two versions of Vector4 (float and integer). * A Projection class, which is a 4x4 matrix specialized in projection types. These types have been requested for a long time, but given they were very corner case they were not added before. Because in Godot 4, reimplementing parts of the rendering engine is now possible, access to these types (heavily used by the rendering code) becomes a necessity. **Q**: Why Projection and not Matrix4? **A**: Godot does not use Matrix2, Matrix3, Matrix4x3, etc. naming convention because, within the engine, these types always have a *purpose*. As such, Godot names them: Transform2D, Transform3D or Basis. In this case, this 4x4 matrix is _always_ used as a _Projection_, hence the naming.
2022-07-21Rename `epsilon` to `tolerance` in the `Plane::has_point` methodYuri Rubinsky
2022-07-19Fix the calculation of the angular velocity when the rotation speed is not high.fabriceci
2022-07-16rename translate(d) to translate(d)_local in Transform 2D/3DFabian Keller
2022-07-06Remove Octreelawnjelly
Octree is no longer used in 4.x.
2022-07-04Expression built-in functions can also be considered as identifiers in ↵cdemirer
subscripts
2022-06-28Merge pull request #62468 from V-Sekai/core-const-expressionsRémi Verschelde
Add a const call mode to Object, Variant and Script.
2022-06-27Merge pull request #62458 from Geometror/interpolation-function-cleanupRémi Verschelde
Refactor Bezier interpolation functions
2022-06-27Add a const call mode to Object, Variant and Script.K. S. Ernest (iFire) Lee
For this to work safely (user not call queue_free or something in the expression), a const call mode was added to Object and Variant (and optionally Script). This mode ensures only const functions can be called, making it safe to use from the editor. Co-Authored-By: reduz <reduzio@gmail.com>
2022-06-27Refactor bezier interpolation functionsHendrik Brucker
2022-06-27Fix VECTOR/LOCAL transitions in Node3Dreduz
Fixes #62225, supersedes #62227
2022-06-22Add surface indices to TriangleMeshreduz
Helps unblock #56597
2022-06-20Clean up Hash Functionsreduz
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
2022-06-17Ensure AudioFrame variables l and r are always initialisedMarcel Admiraal
2022-06-16Remove redundand header from `a_star.h`Yuri Rubinsky
2022-06-16Make AStar to use 64-bit logicYuri Rubinsky
2022-06-16Merge pull request #58669 from theraot/ASar2DbidirectionalRémi Verschelde
AStar2D bidirectional
2022-06-08Fix `wrapf` to correct wrap values with 0.1 steppingYuri Rubinsky
2022-06-08i18n: Misc fixes translation stringsRémi Verschelde
Adds some translator comments to solve some questions raised on Weblate.
2022-06-07Merge pull request #61319 from JFonS/taa_wipRémi Verschelde
Initial TAA implementation
2022-06-07Allow picking similar colours using OKHSL.K. S. Ernest (iFire) Lee
2022-06-07Initial TAA implementationjfons
Initial TAA support based on the implementation in Spartan Engine. Motion vectors are correctly generated for camera and mesh movement, but there is no support for other things like particles or skeleton deformations.