summaryrefslogtreecommitdiffstats
path: root/modules/csg/csg_shape.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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>
* Fixed CSG debug collision shapes being visible in editor. Also undid an old, ↵Zi Ye2024-09-091-6/+1
| | | | incorrect fix which made debug collision visibility depend on CSG visibility.
* Merge pull request #93252 from smix8/csg_bakeRémi Verschelde2024-08-191-17/+44
|\ | | | | | | Add CSG options to bake to static mesh and collision shape
| * Add CSG options to bake to static mesh and collision shapesmix82024-06-191-17/+44
| | | | | | | | Adds API to bake a CSG root node operation to either a static ArrayMesh or a ConcavePolygonShape3D physics collision shape. Adds menu options to the editor plugin when selecting a CSG root node to add baked sibling nodes.
* | Fix CSGShape3D's _mesh_changed thread unsafe call to update_gizmosjsjtxietian2024-07-301-1/+2
|/
* Make CSG shape dirty after changing Snap, update doc312024-06-161-0/+5
| | | | | | Update doc to mention that Snap only takes effect at the top level. Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
* Use Core/Scene stringnames consistentlykobewi2024-05-131-3/+3
|
* 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