Skip to content

Commit

Permalink
Add keywords to PhysicsBody{2D,3D}.test_move() for easier discovera…
Browse files Browse the repository at this point in the history
…bility

`sweep` is the term used in Unity for collision checks without
moving anything.
  • Loading branch information
Calinou committed Mar 9, 2024
1 parent f289648 commit f8dd984
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/classes/PhysicsBody2D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/PhysicsBody3D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit f8dd984

Please sign in to comment.