MotionMode

    CharacterBody2D.swift:22
    enum MotionMode

    Cases

    • case grounded

      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.

    • case floating

      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.

    Other members in extension

    View members

    Hide members

    This section is hidden by default because it contains too many (35) members.

    Types

    Type members

    Instance members

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features