2017-09-13 04:42:36 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 16:08:05 +08:00
<class name= "CollisionPolygon3D" inherits= "Node3D" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-13 04:42:36 +08:00
<brief_description >
2023-04-29 04:59:03 +08:00
A node that provides a thickened polygon shape (a prism) to a [CollisionObject3D] parent.
2017-09-13 04:42:36 +08:00
</brief_description>
<description >
2023-04-29 04:59:03 +08: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-13 04:42:36 +08:00
</description>
<tutorials >
</tutorials>
<members >
2019-06-29 18:38:01 +08:00
<member name= "depth" type= "float" setter= "set_depth" getter= "get_depth" default= "1.0" >
2023-03-05 23:36:01 +08:00
Length that the resulting collision extends in either direction perpendicular to its 2D polygon.
2017-09-13 04:42:36 +08:00
</member>
2024-02-22 01:51:08 +08:00
<member name= "disabled" type= "bool" setter= "set_disabled" getter= "is_disabled" default= "false" keywords= "enabled" >
2019-04-17 19:42:56 +08:00
If [code]true[/code], no collision will be produced.
2017-09-13 04:42:36 +08:00
</member>
2021-02-10 03:37:12 +08: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-25 01:45:03 +08:00
<member name= "polygon" type= "PackedVector2Array" setter= "set_polygon" getter= "get_polygon" default= "PackedVector2Array()" >
2023-03-05 23:36:01 +08:00
Array of vertices which define the 2D polygon in the local XY plane.
2017-09-13 04:42:36 +08:00
</member>
</members>
</class>