Mention CollisionPolygon2D.polygon is local to the given CollisionPolygon2D

(cherry picked from commit f5409dc132)
This commit is contained in:
jsjtxietian 2024-01-10 11:14:57 +08:00 committed by Yuri Sizov
parent 45fc8a3b43
commit f5c7a0e832
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@
</member> </member>
<member name="polygon" type="PackedVector2Array" setter="set_polygon" getter="get_polygon" default="PackedVector2Array()"> <member name="polygon" type="PackedVector2Array" setter="set_polygon" getter="get_polygon" default="PackedVector2Array()">
The polygon's list of vertices. Each point will be connected to the next, and the final point will be connected to the first. The polygon's list of vertices. Each point will be connected to the next, and the final point will be connected to the first.
[b]Note:[/b] The returned vertices are in the local coordinate space of the given [CollisionPolygon2D].
[b]Warning:[/b] The returned value is a clone of the [PackedVector2Array], not a reference. [b]Warning:[/b] The returned value is a clone of the [PackedVector2Array], not a reference.
</member> </member>
</members> </members>