소스 검색

Merge pull request #85839 from romlok/clarify-get-closest-collision-unsafe-fraction

Clarify Shapecast safe/unsafe fraction difference in class reference
Rémi Verschelde 1 년 전
부모
커밋
3d54575330
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      doc/classes/ShapeCast2D.xml
  2. 1 0
      doc/classes/ShapeCast3D.xml

+ 1 - 0
doc/classes/ShapeCast2D.xml

@@ -48,6 +48,7 @@
 			<return type="float" />
 			<return type="float" />
 			<description>
 			<description>
 				The fraction from the [ShapeCast2D]'s origin to its [member target_position] (between 0 and 1) of how far the shape must move to trigger a collision.
 				The fraction from the [ShapeCast2D]'s origin to its [member target_position] (between 0 and 1) of how far the shape must move to trigger a collision.
+				In ideal conditions this would be the same as [method get_closest_collision_safe_fraction], however shape casting is calculated in discrete steps, so the precise point of collision can occur between two calculated positions.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_collider" qualifiers="const">
 		<method name="get_collider" qualifiers="const">

+ 1 - 0
doc/classes/ShapeCast3D.xml

@@ -48,6 +48,7 @@
 			<return type="float" />
 			<return type="float" />
 			<description>
 			<description>
 				The fraction from the [ShapeCast3D]'s origin to its [member target_position] (between 0 and 1) of how far the shape must move to trigger a collision.
 				The fraction from the [ShapeCast3D]'s origin to its [member target_position] (between 0 and 1) of how far the shape must move to trigger a collision.
+				In ideal conditions this would be the same as [method get_closest_collision_safe_fraction], however shape casting is calculated in discrete steps, so the precise point of collision can occur between two calculated positions.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_collider" qualifiers="const">
 		<method name="get_collider" qualifiers="const">