diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-09 16:19:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 16:19:03 +0200 |
commit | 577f3f7f391d973ffeb43c375cd16f7af333ad1d (patch) | |
tree | 473efe00afc339164aced40b6c9ec1b8c04aa845 /doc | |
parent | 5013c1d5b6ae4eb4a81034907989752056b731d9 (diff) | |
parent | c836bdf5b117c0262ca0794443da80fc3aba7ed3 (diff) |
Merge pull request #60868 from KoBeWi/1wayarea
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/CollisionPolygon2D.xml | 1 | ||||
-rw-r--r-- | doc/classes/CollisionShape2D.xml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/classes/CollisionPolygon2D.xml b/doc/classes/CollisionPolygon2D.xml index a9d8a85226..f290fc9801 100644 --- a/doc/classes/CollisionPolygon2D.xml +++ b/doc/classes/CollisionPolygon2D.xml @@ -18,6 +18,7 @@ </member> <member name="one_way_collision" type="bool" setter="set_one_way_collision" getter="is_one_way_collision_enabled" default="false"> If [code]true[/code], only edges that face up, relative to [CollisionPolygon2D]'s rotation, will collide with other objects. + [b]Note:[/b] This property has no effect if this [CollisionPolygon2D] is a child of an [Area2D] node. </member> <member name="one_way_collision_margin" type="float" setter="set_one_way_collision_margin" getter="get_one_way_collision_margin" default="1.0"> The margin used for one-way collision (in pixels). Higher values will make the shape thicker, and work better for colliders that enter the polygon at a high velocity. diff --git a/doc/classes/CollisionShape2D.xml b/doc/classes/CollisionShape2D.xml index f3a4cbc2d6..246e0e8663 100644 --- a/doc/classes/CollisionShape2D.xml +++ b/doc/classes/CollisionShape2D.xml @@ -18,6 +18,7 @@ </member> <member name="one_way_collision" type="bool" setter="set_one_way_collision" getter="is_one_way_collision_enabled" default="false"> Sets whether this collision shape should only detect collision on one side (top or bottom). + [b]Note:[/b] This property has no effect if this [CollisionShape2D] is a child of an [Area2D] node. </member> <member name="one_way_collision_margin" type="float" setter="set_one_way_collision_margin" getter="get_one_way_collision_margin" default="1.0"> The margin used for one-way collision (in pixels). Higher values will make the shape thicker, and work better for colliders that enter the shape at a high velocity. |