Commit Graph

70 Commits

Author SHA1 Message Date
Thaddeus Crews
9a2ab8514e
Merge pull request #101810 from BattyBovine/collision-polygon-3d-debug-colours
Add debug colours and fills to CollisionPolygon3D.
2025-01-21 11:55:29 -06:00
BattyBovine
a3ef9de6a8 Add debug colours and fills to CollisionPolygon3D.
This brings CollisionPolygon3D up to feature parity with its counterpart
CollisionShape3D. Closes #101414.

In addition, adding this feature fixes the issue that CollisionPolygon3D
would never be rendered in exported builds, even if Visible Collision Shapes
is enabled at runtime. Closes #101413.
2025-01-20 18:27:05 -05:00
Thaddeus Crews
bacf8d198d
Merge pull request #101014 from BattyBovine/cs3d-separation-ray-fix-2
Prevent errors when drawing debug meshes with no mesh data.
2025-01-20 16:25:48 -06:00
Pāvels Nadtočajevs
05ce2fb0c8 Fix crash in Particles3DEmissionShapeGizmoPlugin. 2025-01-16 15:15:21 +02:00
Silc Lizard (Tokage) Renew
7b3d14fbcd Fix shifted joint radius index in SpringBone gizmo/remove unused tips 2025-01-14 16:27:59 +09:00
Rémi Verschelde
2f6a18f7ff Merge pull request #101409 from TokageItLab/spring-bone
Implement SpringBoneSimulator3D to wiggle chained bones
2025-01-14 00:22:11 +01:00
Silc Lizard (Tokage) Renew
5472558a98 Implement SpringBoneSimulator3D to wiggle chained bones
Co-authored-by: lyuma <xn.lyuma@gmail.com>
Co-authored-by: fire <ernest.lee@chibifire.com>
Co-authored-by: SaracenOne <SaracenOne@gmail.com>
2025-01-14 05:43:57 +09:00
Kiro
d36a9ab591 improve NavigationLink3DGizmoPlugin::redraw performance 2025-01-12 19:48:12 +01:00
BattyBovine
6dc6ad2b86 Prevent errors when drawing debug meshes when surface count is zero.
Adds a few checks to ensure a debug collision mesh contains mesh data before
attempting to add it to the gizmo draw list. This prevents errors when using
SeparationRayShape3D, which is only intended to draw a single line, and
contains no mesh data.

Closes #100665
2025-01-06 21:35:52 -05:00
Rémi Verschelde
94f23c342a
Merge pull request #101010 from smix8/navlink_debug_direction
Add NavigationLink debug direction indicator
2025-01-03 00:50:06 +01:00
Rémi Verschelde
d484e23bce
Merge pull request #100113 from paddy-exe/particle-emission-shape-visual-separate-pr
Add visualization of 3D particle emission shapes
2025-01-03 00:48:22 +01:00
smix8
8dd0579bcd Add NavigationLink debug direction indicator
Adds direction indicator arrows to the NavigationLink debug depending on if a link is onewyay or bidirectional.
2025-01-02 01:07:26 +01:00
Patrick Exner
e689c122a6 Add visualization of 3D particle emission shapes
Co-authored-by: Kasper Arnklit Frandsen <kasper.arnklit@gmail.com>
2024-12-28 19:56:50 +01:00
A Thousand Ships
a1846b27ea
Improve use of Ref.is_null/valid
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
Yufeng Ying
f241c1fda0 Remove unused header in editor.
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-24 00:40:38 +08:00
Yufeng Ying
73d85f46c9 Remove unused headers in scene.
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-24 00:40:09 +08:00
landervr
dd7325d3f7 remove solid boxes voxelGI and ReflectionProbe 2024-12-13 16:26:22 +01:00
landervr
05010180ce ReflectionProbe add Blend Distance 2024-12-05 23:29:47 +01:00
Thaddeus Crews
370e5f3b0e
Merge pull request #99920 from lander-vr/reflection-probe-ui-improvements
Clean up UI of ReflectionProbe
2024-12-05 14:12:12 -06:00
landervr
c3080e3378 Adjust VoxelGI gizmo opacity 2024-12-03 17:00:40 +01:00
landervr
a694cd7120 Clean up UI of ReflectionProbe 2024-12-02 11:52:11 +01:00
landervr
11225de197 Fix ReflectionProbe AABB 2024-11-28 17:31:29 +01:00
Thaddeus Crews
30ab612e35
Merge pull request #90778 from timothyqiu/cam-preview
Add Camera3D preview in Inspector
2024-11-27 10:46:59 -06:00
Jamie Greunbaum
0fc082e1ee
Add CollisionShape3D custom debug colours
This allows changing the display colour of a CollisionShape3D node on a per-shape basis.
It also adds the ability to display a solid coloured preview of a CollisionShape3D.

Closes https://github.com/godotengine/godot-proposals/issues/906
2024-11-26 16:28:13 +01:00
Thaddeus Crews
925b690c98
Core: Integrate Ref::instantiate where possible 2024-11-10 12:41:26 -06:00
Aaron Franke
96ec117d19
Fix debug line drawing with tiny convex hull mesh colliders 2024-10-30 00:47:56 -07:00
Thaddeus Crews
61accf0605
Merge pull request #97535 from HolonProduction/gizmo-cylinder
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
🔗 GHA / 🪲 Godot CPP (push) Has been cancelled
Editor: Improve cylinder gizmos
2024-10-25 13:04:14 -05:00
Hugo Locurcio
8e0c0d7837 Improve display for lightmap probes in the editor
- Use the default Back cull mode to improve performance slightly
  and prevent obstructing the camera.
- Fade probes when the camera gets close as to be less intrusive.
2024-10-18 22:52:50 +02:00
HolonProduction
9ea357af20 Editor: Improve cylinder gizmos 🌈 2024-10-11 18:38:36 +02:00
Thaddeus Crews
9f9ee0c813
SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
Rémi Verschelde
d5d6c730bf
Merge pull request #96934 from smix8/planemesh_gizmo
Fix `MeshInstance3D` gizmo redraw performance for `PlaneMesh` with larger subdiv value
2024-09-13 11:22:08 +02:00
smix8
b8de7b72c6 Fix gizmo redraw performance for PlaneMesh with larger subdiv value
Fixes gizmo redraw performance for PlaneMesh with larger subdiv value.
2024-09-12 22:31:56 +02:00
A Thousand Ships
dd6443193c
[Editor] Expose more editor settings to documentation
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2024-09-12 15:34:49 +02:00
Rémi Verschelde
2312345be8
Merge pull request #94698 from aaronp64/current_gizmos_hashset
Improve time to close scene with many 3D gizmos
2024-09-02 12:12:51 +02:00
A Thousand Ships
0c3b975ada
Fix compilation issues caused by far identifier
Breaks some builds on Win due to macro use of this name
2024-08-19 11:13:56 +02:00
aaronp64
4d0e2ee47d Improve time to close scene with many 3D gizmos
Changed EditorNode3DGizmoPlugin::current_gizmos from List to HashSet, to avoid having to iterate through all gizmos when ~EditorNode3DGizmo unregisters itself.
2024-08-18 19:47:19 -04:00
Rémi Verschelde
195a174864
Merge pull request #90690 from jsjtxietian/camera-aspect
Adjust orthographic camera gizmo with respect to `keep_aspect` setting
2024-08-17 00:45:34 +02:00
Rémi Verschelde
0494b37a0c
Merge pull request #91226 from Calinou/editor-gpuparticles3d-simplify-gizmo
Simplify the GPUParticles3D editor gizmo to improve readability
2024-05-07 16:49:38 +02:00
Rémi Verschelde
594498e718
Merge pull request #90966 from Calinou/debug-draw-use-runtime-colors
Use same colors for editor and running project for collision/path debug
2024-05-07 16:49:31 +02:00
Haoyu Qiu
75eacba5cd Add Camera3D preview in Inspector 2024-05-05 16:15:49 +08:00
A Thousand Ships
955d5affa8
Reduce and prevent unnecessary random-access to List
Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when
accessing a single element)

* Removed subscript operator, in favor of a more explicit `get`
* Added conversion from `Iterator` to `ConstIterator`
* Remade existing operations into other solutions when applicable
2024-05-04 16:08:55 +02:00
A Thousand Ships
308dbb8c63
[Core] Add scalar versions of Vector* min/max/clamp/snap(ped)
Convenience for a number of cases operating on single values
2024-05-02 10:31:13 +02:00
Hugo Locurcio
cb05b49c09
Simplify the GPUParticles3D editor gizmo to improve readability
- Remove handles as users should use the Generate Visibility AABB
  option whenever possible, so manual resizing isn't needed often.
  (For particles that move quickly and have Local Coords disabled,
  Extra Cull Margin can be increased in the GeometryInstance3D
  properties in the inspector.)
- Remove translucent filled part of the gizmo to be more consistent
  with GeometryInstance3D's recently introduced Custom AABB gizmo.
- Remove center marker as it can visually obstruct particles.

This paves the way for future emission shape gizmos which will
feature handles.
2024-04-26 22:29:26 +02:00
Hugo Locurcio
b1a2394b3b
Use same colors for editor and running project for collision/path debug
This harmonizes the appearance of collision shapes and paths between
the editor and running project, in both 2D and 3D.

This means that in 3D, paths are now green and shapes are now cyan
instead of light blue.
2024-04-21 00:58:08 +02:00
Rémi Verschelde
1bd6fe81ea
Merge pull request #89538 from CrayolaEater/feature/custom-aabb-gizmos
Add Gizmo to display 3D custom AABB
2024-04-19 16:27:16 +02:00
Bogdan Inculet
8caa1b8783 Add Gizmo to display 3D custom AABB 2024-04-19 02:31:30 +03:00
jsjtxietian
b97d995664 Adjust orthographic camera gizmo with respect to "keep_aspect" setting 2024-04-16 12:50:00 +08:00
Silc Lizard (Tokage) Renew
04dd299cba Skeleton3D: Add SkeletonModifier / Deprecate Override / Separate PB 2024-04-05 01:28:26 +09:00
Hugo Locurcio
72002a77de
Use 3D editor gizmo helper for FogVolume to allow dragging individual faces 2024-03-09 18:03:01 +01:00
smix8
35dafc9fa8 Split monolithic physics class files
Splits monolithic physics class files.
2024-02-27 11:18:16 +01:00