summaryrefslogtreecommitdiffstats
path: root/scene/3d/path_3d.h
Commit message (Collapse)AuthorAgeFilesLines
* Do not defer PathFollow3D transform updatesYaohua Xiong2024-09-101-2/+1
| | | | Co-authored-by: Yaohua Xiong <xiongyaohua@gmail.com>
* Revert "Update Node::get_configuration_warnings signature"Rémi Verschelde2024-02-171-1/+1
| | | | This reverts commit d3852deaa450d77edb30df2bb1c77bd7bc45befc.
* Merge pull request #85455 from xiongyaohua/fix_CSGPolygon_not_following_Path3DRémi Verschelde2024-02-151-4/+6
|\ | | | | | | Notify CSGPolygon about transform changes in Path3D
| * Path3D notify transform change to CSGPolygonYaohua Xiong2024-01-081-4/+6
| |
* | Merge pull request #80233 from xiongyaohua/fix_pathfollower3d_rotation_modeRémi Verschelde2024-02-131-6/+8
|\ \ | | | | | | | | | Fix PathFollow3D update issues
| * | Fix PathFollow3D update issuesYaohua Xiong2024-01-091-6/+8
| |/ | | | | | | | | | | | | - transform is not updated after setting new flags such as `use_model_front` - transform is not updated when the parent Path3D changes - correct_posture() behaves differently when assuming model front - _update_transform() was in immediate mode, could leads to chained calls on scene instantiation.
* / Update Node::get_configuration_warnings signatureRedMser2024-02-081-1/+1
|/
* Fix Pathfollow directionSilc Renew2023-05-241-3/+8
| | | | Co-authored-by: aaronfranke <arnfranke@yahoo.com>
* 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".
* Refactor Curv3D and PathFollow3DYaohua Xiong2022-11-121-1/+6
| | | | | | | | | | This commit makes the following major changes 1. Add "sample_baked_with_rotation()" to Curve3D, making it usable independently. A similar change was made to Curve2D previously. 2. Refactor the _bake() method on Curve3D, using Parallel Transport Frame instead of Frenet Frame. 3. Refactor the sample_* methods, including: i. Factor out common binary search code, following the DRY principe ii. sample_up_vector() interpolated up vector as part of rotation frame(posture) for consistancy and accuracy.
* Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron2022-09-191-1/+1
|
* Rename PathFollow's `offset`s to `progress` & `progress_ratio`Micky2022-08-241-5/+5
| | | | Applies for both PathFollow2D and PathFollow3D
* Make `_validate_property` a multilevel methodYuri Sizov2022-08-221-1/+1
|
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-3/+3
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* Merge pull request #62084 from smix8/path_debug_options_4.xRémi Verschelde2022-06-291-1/+10
|\ | | | | Add Path2D/3D debug options
| * Add Path2D/3D debug optionssmix82022-06-201-1/+10
| | | | | | | | Add Path2D/3D debug options.
* | PathFollow3D parallel transport frame reliability improvementsMark Riedesel2022-05-171-1/+1
|/
* Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde2022-02-151-1/+0
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Use real_t in 3D nodesAaron Franke2021-08-031-8/+8
|
* Use Array for node configuration warningsNathan Franke2021-04-111-1/+1
| | | | Previously, the warnings were passed as a string and delimitation of which were hard coded at each implementation.
* Initialize class variables with default values in scene/ [1/2]Rafał Mikrut2021-02-071-4/+4
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Move initialization of some classes to headersTomasz Chabora2020-12-111-9/+9
|
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-161-1/+0
|
* Add override keywords.Marcel Admiraal2020-07-101-2/+2
|
* Fix repeated updates of PathFollow3D TransformMaganty Rushyendra2020-07-081-1/+1
| | | | | Add optional parameter to specify whether applying rotation to the PathFollow3D's Transform is necessary, preventing erroneous updates.
* Object: Add usage hint to instantiate Object properties in editorRémi Verschelde2020-06-121-1/+1
| | | | | | | | | | | | | | | | | | Fixes #36372 as Path2D/Path3D's `curve` property no longer uses a Curve instance as default value, but instead it gets a (unique) default Curve instance when created through the editor (CreateDialog). ClassDB gets a sanity check to ensure that we don't do the same mistake for other properties in the future, but instead use the dedicated property usage hint. Fixes #36372. Fixes #36650. Supersedes #36644 and #36656. Co-authored-by: Thakee Nathees <thakeenathees@gmail.com> Co-authored-by: simpuid <utkarsh.email@yahoo.com>
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-2/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Renamed 2D and 3D nodes to make their types explicitJuan Linietsky2020-03-271-0/+117
Fixes #30736.