Skip to content

Commit

Permalink
Merge pull request #85839 from romlok/clarify-get-closest-collision-u…
Browse files Browse the repository at this point in the history
…nsafe-fraction

Clarify Shapecast safe/unsafe fraction difference in class reference
  • Loading branch information
akien-mga committed Apr 8, 2024
2 parents 00d4c63 + 4359dc4 commit 3d54575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/ShapeCast2D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<return type="float" />
<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.
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>
</method>
<method name="get_collider" qualifiers="const">
Expand Down
1 change: 1 addition & 0 deletions doc/classes/ShapeCast3D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<return type="float" />
<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.
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>
</method>
<method name="get_collider" qualifiers="const">
Expand Down

0 comments on commit 3d54575

Please sign in to comment.