浏览代码

Merge pull request #82544 from MewPurPur/improve-ray-docs

Improve SeparationRayShape docs
Rémi Verschelde 1 年之前
父节点
当前提交
19c72e847d
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      doc/classes/SeparationRayShape2D.xml
  2. 1 1
      doc/classes/SeparationRayShape3D.xml

+ 1 - 1
doc/classes/SeparationRayShape2D.xml

@@ -4,7 +4,7 @@
 		A 2D ray shape used for physics collision that tries to separate itself from any collider.
 	</brief_description>
 	<description>
-		A 2D ray shape, intended for use in physics. Usually used to provide a shape for a [CollisionShape2D]. When a [SeparationRayShape2D] collides with an object, it tries to separate itself from it by moving its endpoint to the collision point. It can for example be used for spears falling from the sky.
+		A 2D ray shape, intended for use in physics. Usually used to provide a shape for a [CollisionShape2D]. When a [SeparationRayShape2D] collides with an object, it tries to separate itself from it by moving its endpoint to the collision point. For example, a [SeparationRayShape2D] next to a character can allow it to instantly move up when touching stairs.
 	</description>
 	<tutorials>
 	</tutorials>

+ 1 - 1
doc/classes/SeparationRayShape3D.xml

@@ -4,7 +4,7 @@
 		A 3D ray shape used for physics collision that tries to separate itself from any collider.
 	</brief_description>
 	<description>
-		A 3D ray shape, intended for use in physics. Usually used to provide a shape for a [CollisionShape3D]. When a [SeparationRayShape3D] collides with an object, it tries to separate itself from it by moving its endpoint to the collision point. It can for example be used for spears falling from the sky.
+		A 3D ray shape, intended for use in physics. Usually used to provide a shape for a [CollisionShape3D]. When a [SeparationRayShape3D] collides with an object, it tries to separate itself from it by moving its endpoint to the collision point. For example, a [SeparationRayShape3D] next to a character can allow it to instantly move up when touching stairs.
 	</description>
 	<tutorials>
 	</tutorials>