summaryrefslogtreecommitdiffstats
path: root/modules/csg/csg_shape.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #85455 from xiongyaohua/fix_CSGPolygon_not_following_Path3DRémi Verschelde2024-02-151-0/+2
|\ | | | | | | Notify CSGPolygon about transform changes in Path3D
| * Path3D notify transform change to CSGPolygonYaohua Xiong2024-01-081-0/+2
| |
* | Replace error checks against `size` with `is_empty`A Thousand Ships2024-02-091-1/+1
| |
* | Update deferred calls to use Callableskobewi2024-01-091-2/+2
|/
* Merge pull request #80326 from MewPurPur/no-exp-with-zeroRémi Verschelde2023-12-041-1/+1
|\ | | | | | | Remove exp hint of a few properties
| * Remove exp hint of a few propertiesMewPurPur2023-08-061-1/+1
| |
* | Fix CSGShape debug_collision_shape crashsmix82023-11-021-1/+3
| | | | | | | | Fixes CSGShape debug_collision_shape crash.
* | Hide CSGShape's debug_collision_shape when it is invisiblejsjtxietian2023-10-301-0/+5
| |
* | [Modules] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-261-2/+2
| |
* | Make CSGShape follow curve's tilt in Path modepidogs2023-08-171-2/+2
|/ | | | Fixes #65634.
* Unify and streamline connecting to Resource changeskobewi2023-07-171-2/+2
|
* Fix CSGPolygon3D in path mode disappearing at runtime.Evan Todd2023-05-151-1/+1
|
* Add debug collision shape to CSG with collisionRicardo Buring2023-05-031-0/+40
|
* Fix CSG edge case causing intersection line to hit on common edge of 2 ↵K. S. Ernest (iFire) Lee2023-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | triangles. The previous implementation assumed that the intersection entered or exited a shape when it hit right on the common edge of 2 triangles. However, there is also a case where it just "skirts" the other shape on the outside. To fix this, we added code to check the intersection distance and if the normals of the faces are pointed in the same direction as the intersection or not (e.g. inner product > 0). This handles the case where the intersection line hits the common edge of 2 triangles and skirts the other shape on the outside. Extended code to cover a third case. Fixes #58637. Co-authored-by: OldBelge <StevenGeens@users.noreply.github.com>
* Add compatibility code for CSGBox3D width/height/depth from Godot 3.xDESKTOP-9O27V4U\Navi2023-02-131-0/+24
| | | | Fixes #66420.
* Don't generate CSGPolygon3D shape before the assigned path is inside treeMinusKube2023-01-311-2/+2
|
* 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".
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-55/+55
| | | | change warnings=all to use /W4.
* Rename Curve/Curve2D/Curve3D/Gradient `interpolate()` to `sample()`Hugo Locurcio2022-08-301-8/+8
| | | | | "sampling" is a more accurate term than "interpolating" for what's happening when using that function.
* Rename `str2var` to `str_to_var` and similarMicky2022-08-261-2/+2
| | | | | | | | | | | | | | | | | | 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`
* Merge pull request #64339 from YuriSizov/core-multilevel-validate-propertyRémi Verschelde2022-08-221-15/+12
|\
| * Make `_validate_property` a multilevel methodYuri Sizov2022-08-221-15/+12
| |
* | Merge pull request #64343 from TokageItLab/priority-phRémi Verschelde2022-08-221-0/+17
|\ \ | |/ |/|
| * Add collision weight to PhysicsBody for penetrations must be avoidedSilc Renew2022-08-181-0/+17
| | | | | | | | Co-authored-by: Juan Linietsky <reduzio@gmail.com>
* | Remove unintentional PROPERTY_USAGE_INTERNALRedMser2022-08-181-1/+1
|/ | | | | The flag only matters for property definition, but was also used in _validate_property a lot.
* rename translate(d) to translate(d)_local in Transform 2D/3DFabian Keller2022-07-161-3/+3
|
* Add suffixes to all nodes and resourcesFireForge2022-06-111-3/+3
|
* Use suffixes for units in nodes and resourcesAaron Franke2022-05-191-6/+6
|
* Rename `CSGPrimitive3D.invert_faces` to `flip_faces`hoontee2022-05-061-18/+18
|
* Decrease default sizes of some primitive and CSG meshes for consistencyHugo Locurcio2022-04-271-1/+1
|
* Prevent non-smoothed face normals to participate to smoothed face normalsMythTitans2022-03-111-9/+11
|
* Fix normals computation at the 'seam' of smoothed torus shapeMythTitans2022-03-111-0/+6
|
* Discern between virtual and abstract class bindingsreduz2022-03-101-4/+0
| | | | | | | | | | | | | | * Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
* Revert #52647hoontee2022-03-091-1/+1
|
* Add SNAME macro optimization missed during rebasehoontee2022-03-091-1/+1
|
* Properly handle CSGShape parent and visibility updates, plus some refactoringhoontee2022-03-081-58/+74
|
* Fix normals computation at the 'seam' of smoothed sphere and cylinder shapesMythTitans2022-02-161-0/+7
|
* Convert _notification methods to switch - Chunk CJakob Bouchard2022-02-161-47/+49
|
* Improve the default size for 3D shapes (Box, Capsule, and Cylinder)Aaron Franke2022-02-011-4/+4
|
* Improve CSGPolygon3D documentationHugo Locurcio2022-01-211-1/+1
| | | | - Describe why polygon triangulation usually fails in the error message.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix various typosluz paz2022-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn` Update editor/import/resource_importer_layered_texture.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update doc/classes/TileSetScenesCollectionSource.xml Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/graph_edit.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/rich_text_label.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Revert previously committed change
* Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`Hugo Locurcio2021-11-031-2/+2
| | | | | This is consistent with other constants that include `NO`, such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
* Refactored Node3D rotation modesreduz2021-10-251-0/+1
| | | | | | | | | * Made the Basis euler orders indexed via enum. * Node3D has a new rotation_order property to choose Euler rotation order. * Node3D has also a rotation_mode property to choose between Euler, Quaternion and Basis Exposing these modes as well as the order makes Godot a lot friendlier for animators, which can choose the best way to interpolate rotations. The new *Basis* mode makes the (exposed) transform property obsolete, so it was removed (can still be accessed by code of course).
* Fixed a typo in csg moduleM. Huri2021-10-121-1/+1
|
* CSGPolygon fixes and features: Angle simplification, UV tiling distance, ↵jitspoe2021-09-271-182/+268
| | | | interval type.
* Don't update CSG Shape when not inside treeHaoyu Qiu2021-09-141-1/+1
|
* Merge pull request #51532 from nekomatata/layer-mask-accessorsRémi Verschelde2021-08-121-22/+26
|\ | | | | Uniformize layer names, script methods and documentation
| * Uniformize layer names, script methods and documentationPouleyKetchoupp2021-08-121-22/+26
| | | | | | | | | | | | | | - Back to 1-based layer names to make it clearer in editor UI - Layer bit accessors are renamed to layer value and 1-based too - Uniform errors and documentation in render and physics - Fix a few remaining collision_layer used in place of collision_mask
* | Fix multiple issues with CSGPolygonMarcel Admiraal2021-08-121-414/+239
|/