Add keywords to `PhysicsBody{2D,3D}.test_move()` for easier discoverability

`sweep` is the term used in Unity for collision checks without
moving anything.
This commit is contained in:
Hugo Locurcio 2024-03-09 17:33:04 +01:00
parent f28964805e
commit f8dd9844e5
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@
Removes a body from the list of bodies that this body can't collide with.
</description>
</method>
<method name="test_move">
<method name="test_move" keywords="check, collision, sweep">
<return type="bool" />
<param index="0" name="from" type="Transform2D" />
<param index="1" name="motion" type="Vector2" />

View File

@ -68,7 +68,7 @@
Locks or unlocks the specified linear or rotational [param axis] depending on the value of [param lock].
</description>
</method>
<method name="test_move">
<method name="test_move" keywords="check, collision, sweep">
<return type="bool" />
<param index="0" name="from" type="Transform3D" />
<param index="1" name="motion" type="Vector3" />