2017-09-12 20:42:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 08:08:05 +00:00
<class name= "CollisionPolygon3D" inherits= "Node3D" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 20:42:36 +00:00
<brief_description >
2023-04-28 20:59:03 +00:00
A node that provides a thickened polygon shape (a prism) to a [CollisionObject3D] parent.
2017-09-12 20:42:36 +00:00
</brief_description>
<description >
2023-04-28 20:59:03 +00:00
A node that provides a thickened polygon shape (a prism) to a [CollisionObject3D] parent and allows to edit it. The polygon can be concave or convex. This can give a detection shape to an [Area3D] or turn [PhysicsBody3D] into a solid object.
[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 shape resource instead.
2017-09-12 20:42:36 +00:00
</description>
<tutorials >
</tutorials>
<members >
2019-06-29 10:38:01 +00:00
<member name= "depth" type= "float" setter= "set_depth" getter= "get_depth" default= "1.0" >
2023-03-05 15:36:01 +00:00
Length that the resulting collision extends in either direction perpendicular to its 2D polygon.
2017-09-12 20:42:36 +00:00
</member>
2024-02-21 17:51:08 +00:00
<member name= "disabled" type= "bool" setter= "set_disabled" getter= "is_disabled" default= "false" keywords= "enabled" >
2019-04-17 11:42:56 +00:00
If [code]true[/code], no collision will be produced.
2017-09-12 20:42:36 +00:00
</member>
2021-02-09 19:37:12 +00:00
<member name= "margin" type= "float" setter= "set_margin" getter= "get_margin" default= "0.04" >
The collision margin for the generated [Shape3D]. See [member Shape3D.margin] for more details.
</member>
2019-09-24 17:45:03 +00:00
<member name= "polygon" type= "PackedVector2Array" setter= "set_polygon" getter= "get_polygon" default= "PackedVector2Array()" >
2023-03-05 15:36:01 +00:00
Array of vertices which define the 2D polygon in the local XY plane.
2017-09-12 20:42:36 +00:00
</member>
</members>
</class>