diff options
| author | Jamie Greunbaum <jamie.greunbaum@battybovine.com> | 2024-04-02 03:26:10 -0400 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-11-26 16:28:13 +0100 |
| commit | 0fc082e1ee3af5bb6a4b52f85756d24dc02b230f (patch) | |
| tree | 95711351b1bc163dfa65c5529285e1f0136cce27 /doc | |
| parent | d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ce (diff) | |
| download | redot-engine-0fc082e1ee3af5bb6a4b52f85756d24dc02b230f.tar.gz | |
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
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/classes/CollisionShape3D.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/classes/CollisionShape3D.xml b/doc/classes/CollisionShape3D.xml index a4e0ed0b28..69a7dd2b36 100644 --- a/doc/classes/CollisionShape3D.xml +++ b/doc/classes/CollisionShape3D.xml @@ -29,6 +29,12 @@ </method> </methods> <members> + <member name="debug_color" type="Color" setter="set_debug_color" getter="get_debug_color" default="Color(0, 0, 0, 0)"> + The collision shape color that is displayed in the editor, or in the running project if [b]Debug > Visible Collision Shapes[/b] is checked at the top of the editor. If this is reset to its default value of [code]Color(0, 0, 0, 0)[/code], the value of [member ProjectSettings.debug/shapes/collision/shape_color] will be used instead. + </member> + <member name="debug_fill" type="bool" setter="set_enable_debug_fill" getter="get_enable_debug_fill" default="true"> + If [code]true[/code], when the shape is displayed, it will show a solid fill color in addition to its wireframe. + </member> <member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" default="false" keywords="enabled"> A disabled collision shape has no effect in the world. </member> |
