Enum CharacterBody2D.MotionModeEnum
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum CharacterBody2D.MotionModeEnum : long
Fields
Floating = 1
Apply when there is no notion of floor or ceiling. All collisions will be reported as
on_wall
. In this mode, when you slide, the speed will always be constant. This mode is suitable for top-down games.Grounded = 0
Apply when notions of walls, ceiling and floor are relevant. In this mode the body motion will react to slopes (acceleration/slowdown). This mode is suitable for sided games like platformers.