You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/classes/CharacterBody2D.xml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,8 @@
30
30
<methodname="get_floor_normal"qualifiers="const">
31
31
<returntype="Vector2" />
32
32
<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.
34
35
</description>
35
36
</method>
36
37
<methodname="get_last_motion"qualifiers="const">
@@ -94,7 +95,8 @@
94
95
<methodname="get_wall_normal"qualifiers="const">
95
96
<returntype="Vector2" />
96
97
<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.
Copy file name to clipboardExpand all lines: doc/classes/CharacterBody3D.xml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,8 @@
87
87
<methodname="get_wall_normal"qualifiers="const">
88
88
<returntype="Vector3" />
89
89
<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.
0 commit comments