summaryrefslogtreecommitdiffstats
path: root/core/math/transform_3d.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotSpartan3222024-10-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084) Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* [Core] Codestyle improvements to math typesA Thousand Ships2024-03-041-7/+7
|
* Add and expose Basis/Transform2D/3D division by float operatorAaron Franke2023-12-201-0/+11
|
* Add the ability to look-at in model-space.Juan Linietsky2023-05-241-4/+4
| | | | | | | | | | 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.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Add `is_finite` method for checking built-in typesHaoyu Qiu2022-10-081-0/+4
|
* Use float literals for float calculations in ColorAaron Franke2022-10-071-1/+1
|
* Discontinued spherical_interpolate_with in Transform3DSilc Renew2022-08-311-12/+1
|
* Fix consistency of translated/scaled/rotated in Transform2D and Transform3DFabian Keller2022-08-021-7/+23
|
* Merge pull request #63532 from TokageItLab/rename-cubic-slerpRémi Verschelde2022-07-281-1/+1
|\
| * rename and unify notation for spherical interpolationSilc Renew2022-07-271-1/+1
| |
* | Merge pull request #57698 from ↵Rémi Verschelde2022-07-281-5/+5
|\ \ | | | | | | | | | bluenote10/feature/rename_translated_to_translated_local
| * | rename translate(d) to translate(d)_local in Transform 2D/3DFabian Keller2022-07-161-5/+5
| |/
* / add equal checks to Transform3D::looking_at and Transform3D::set_look_atNathan Franke2022-07-251-0/+6
|/
* Core: Rename math 'phi' arguments to 'angle'Rémi Verschelde2022-05-051-6/+6
|
* Rename Basis get_axis to get_column, remove redundant methodsAaron Franke2022-05-031-6/+6
|
* Merge pull request #53684 from TokageItLab/orthogonal-modeRémi Verschelde2022-01-051-2/+22
|\
| * Fix some gizmo behavior to make more consistentSilc 'Tokage' Renew2021-12-251-2/+22
| |
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* clang-format: Disable alignment of operands, too unreliableRémi Verschelde2021-10-281-3/+3
| | | | | | | | | Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
* Move code for looking_at to BasisAaron Franke2021-08-011-30/+2
|
* Allow multiplying Transforms and Basis by numbersAaron Franke2021-06-151-0/+11
|
* Reformat structure string operatorsAaron Franke2021-06-111-1/+4
| | | | | | The order of numbers is not changed except for Transform2D. All logic is done inside of their structures (and not in Variant). For the number of decimals printed, they now use String::num_real which works best with real_t, except for Color which is fixed at 4 decimals (this is a reliable number of float digits when converting from 16-bpc so it seems like a good choice)
* Rename Quat to QuaternionMarcel Admiraal2021-06-041-3/+3
|
* Rename files and the exposed name for Transform3DAaron Franke2021-06-031-0/+212