summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2024-03-09 17:33:04 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2024-03-09 17:33:04 +0100
commitf8dd9844e5c540afd08030c91b005aeaca3c9da2 (patch)
tree17bafac14ca3b615c427a98487e8fba624f90add
parentf28964805e44a5c068ce8fd9d1e00697fcd922dc (diff)
downloadredot-engine-f8dd9844e5c540afd08030c91b005aeaca3c9da2.tar.gz
Add keywords to `PhysicsBody{2D,3D}.test_move()` for easier discoverability
`sweep` is the term used in Unity for collision checks without moving anything.
-rw-r--r--doc/classes/PhysicsBody2D.xml2
-rw-r--r--doc/classes/PhysicsBody3D.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/PhysicsBody2D.xml b/doc/classes/PhysicsBody2D.xml
index eef159d44d..fa3bb941bf 100644
--- a/doc/classes/PhysicsBody2D.xml
+++ b/doc/classes/PhysicsBody2D.xml
@@ -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" />
diff --git a/doc/classes/PhysicsBody3D.xml b/doc/classes/PhysicsBody3D.xml
index 866b3e298c..5019da35c8 100644
--- a/doc/classes/PhysicsBody3D.xml
+++ b/doc/classes/PhysicsBody3D.xml
@@ -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" />