Skip to content
0.2.0-dev Download ZIP
46 lines ·2.8 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="CollisionShape3D" inherits="Node3D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A node that provides a [Shape3D] to a [CollisionObject3D] parent.
5 </brief_description>
6 <description>
7 A node that provides a [Shape3D] to a [CollisionObject3D] parent and allows it to be edited. This can give a detection shape to an [Area3D] or turn a [PhysicsBody3D] into a solid object.
8 [b]Warning:[/b] A non-uniformly scaled [CollisionShape3D] will likely not behave as expected. Make sure to keep its scale the same on all axes and adjust its [member shape] resource instead.
9 </description>
10 <tutorials>
11 <link title="Physics introduction">$DOCS_URL/tutorials/physics/physics_introduction.html</link>
12 <link title="3D Kinematic Character Demo">https://godotengine.org/asset-library/asset/2739</link>
13 <link title="3D Platformer Demo">https://godotengine.org/asset-library/asset/2748</link>
14 <link title="Third Person Shooter (TPS) Demo">https://godotengine.org/asset-library/asset/2710</link>
15 </tutorials>
16 <methods>
17 <method name="make_convex_from_siblings">
18 <return type="void" />
19 <description>
20 Sets the collision shape's shape to the addition of all its convexed [MeshInstance3D] siblings geometry.
21 </description>
22 </method>
23 <method name="resource_changed" deprecated="Use [signal Resource.changed] instead.">
24 <return type="void" />
25 <param index="0" name="resource" type="Resource" />
26 <description>
27 This method does nothing.
28 </description>
29 </method>
30 </methods>
31 <members>
32 <member name="debug_color" type="Color" setter="set_debug_color" getter="get_debug_color" default="Color(0, 0, 0, 0)">
33 The collision shape color that is displayed in the editor, or in the running project if [b]Debug &gt; Visible Collision Shapes[/b] is checked at the top of the editor.
34 [b]Note:[/b] The default value is [member ProjectSettings.debug/shapes/collision/shape_color]. The [code]Color(0, 0, 0, 0)[/code] value documented here is a placeholder, and not the actual default debug color.
35 </member>
36 <member name="debug_fill" type="bool" setter="set_enable_debug_fill" getter="get_enable_debug_fill" default="true">
37 If [code]true[/code], when the shape is displayed, it will show a solid fill color in addition to its wireframe.
38 </member>
39 <member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" default="false" keywords="enabled">
40 A disabled collision shape has no effect in the world. This property should be changed with [method Object.set_deferred].
41 </member>
42 <member name="shape" type="Shape3D" setter="set_shape" getter="get_shape">
43 The actual shape owned by this collision shape.
44 </member>
45 </members>
46</class>