diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-09 17:13:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 17:13:21 +0200 |
commit | 83d26737727f281afcb33f66fea5d09ed6c48d5a (patch) | |
tree | 2fc53464f7d617f16f6ca72dc65b876f3690bbf0 /doc/classes/CharacterBody2D.xml | |
parent | eb6ebdc4aff88de8da4217dfe1c4f226a1fd2132 (diff) | |
parent | 09efb1f726e31edf1bac266a7568a613a47ea433 (diff) |
Merge pull request #60059 from fabriceci/fix-up-direction-doc
Diffstat (limited to 'doc/classes/CharacterBody2D.xml')
-rw-r--r-- | doc/classes/CharacterBody2D.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/CharacterBody2D.xml b/doc/classes/CharacterBody2D.xml index 28060f6579..63d493248f 100644 --- a/doc/classes/CharacterBody2D.xml +++ b/doc/classes/CharacterBody2D.xml @@ -183,7 +183,7 @@ If [code]true[/code], during a jump against the ceiling, the body will slide, if [code]false[/code] it will be stopped and will fall vertically. </member> <member name="up_direction" type="Vector2" setter="set_up_direction" getter="get_up_direction" default="Vector2(0, -1)"> - Direction vector used to determine what is a wall and what is a floor (or a ceiling), rather than a wall, when calling [method move_and_slide]. Defaults to [code]Vector2.UP[/code]. If set to [code]Vector2(0, 0)[/code], everything is considered a wall. This is useful for topdown games. + Vector pointing upwards, used to determine what is a wall and what is a floor (or a ceiling) when calling [method move_and_slide]. Defaults to [code]Vector2.UP[/code]. As the vector will be normalized it can't be equal to [constant Vector2.ZERO], if you want all collisions to be reported as walls, consider using [constant MOTION_MODE_FLOATING] as [member motion_mode]. </member> <member name="velocity" type="Vector2" setter="set_velocity" getter="get_velocity" default="Vector2(0, 0)"> Current velocity vector in pixels per second, used and modified during calls to [method move_and_slide]. |