mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
3fa77b3172
It has no practical use case and just generates noise for each alpha, beta, etc.
33 lines
1.3 KiB
XML
33 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="ConvexPolygonShape2D" inherits="Shape2D" category="Core" version="3.1">
|
|
<brief_description>
|
|
Convex Polygon Shape for 2D physics.
|
|
</brief_description>
|
|
<description>
|
|
Convex Polygon Shape for 2D physics. A convex polygon, whatever its shape, is internally decomposed into as many convex polygons as needed to ensure all collision checks against it are always done on convex polygons (which are faster to check).
|
|
The main difference between a [code]ConvexPolygonShape2D[/code] and a [ConcavePolygonShape2D] is that a concave polygon assumes it is concave and uses a more complex method of collision detection, and a convex one forces itself to be convex in order to speed up collision detection.
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<demos>
|
|
</demos>
|
|
<methods>
|
|
<method name="set_point_cloud">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="point_cloud" type="PoolVector2Array">
|
|
</argument>
|
|
<description>
|
|
Currently, this method does nothing.
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<members>
|
|
<member name="points" type="PoolVector2Array" setter="set_points" getter="get_points">
|
|
The polygon's list of vertices. Can be in either clockwise or counterclockwise order.
|
|
</member>
|
|
</members>
|
|
<constants>
|
|
</constants>
|
|
</class>
|