Skip to content

Commit 4799459

Browse files
committed
Surface normal is not correct
1 parent 6c57928 commit 4799459

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

doc/classes/CharacterBody2D.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
<method name="get_floor_normal" qualifiers="const">
3131
<return type="Vector2" />
3232
<description>
33-
Returns the surface normal of the floor at the last collision point. Only valid after calling [method move_and_slide] and when [method is_on_floor] returns [code]true[/code].
33+
Returns the collision normal of the floor at the last collision point. Only valid after calling [method move_and_slide] and when [method is_on_floor] returns [code]true[/code].
34+
[b]Warning:[/b] The collision normal is not always the same as the surface normal.
3435
</description>
3536
</method>
3637
<method name="get_last_motion" qualifiers="const">
@@ -94,7 +95,8 @@
9495
<method name="get_wall_normal" qualifiers="const">
9596
<return type="Vector2" />
9697
<description>
97-
Returns the surface normal of the wall at the last collision point. Only valid after calling [method move_and_slide] and when [method is_on_wall] returns [code]true[/code].
98+
Returns the collision normal of the wall at the last collision point. Only valid after calling [method move_and_slide] and when [method is_on_wall] returns [code]true[/code].
99+
[b]Warning:[/b] The collision normal is not always the same as the surface normal.
98100
</description>
99101
</method>
100102
<method name="is_on_ceiling" qualifiers="const">

doc/classes/CharacterBody3D.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
<method name="get_wall_normal" qualifiers="const">
8888
<return type="Vector3" />
8989
<description>
90-
Returns the surface normal of the wall at the last collision point. Only valid after calling [method move_and_slide] and when [method is_on_wall] returns [code]true[/code].
90+
Returns the collision normal of the wall at the last collision point. Only valid after calling [method move_and_slide] and when [method is_on_wall] returns [code]true[/code].
91+
[b]Warning:[/b] The collision normal is not always the same as the surface normal.
9192
</description>
9293
</method>
9394
<method name="is_on_ceiling" qualifiers="const">

0 commit comments

Comments
 (0)