Skip to content

CharacterBody2D MotionModeEnum

Eduard Gushchin edited this page Jul 1, 2026 · 5 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.CharacterBody2D.MotionModeEnum
Namespace Electron2D
Kind enum
Category Physics

Overview

Identifies how collisions are classified during slide movement.

Syntax

public enum Electron2D.CharacterBody2D.MotionModeEnum : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: CharacterBody2D.MotionMode

Grounded and floating collision classification modes.

Remarks

The mode changes how Electron2D.CharacterBody2D.MoveAndSlide interprets collision normals when updating Electron2D.CharacterBody2D.IsOnFloor, Electron2D.CharacterBody2D.IsOnWall and Electron2D.CharacterBody2D.IsOnCeiling.

Since

This enum is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.CharacterBody2D.MotionMode

Members

Member Kind Summary
Floating Enum value Classifies all slide collisions as walls.
Grounded Enum value Classifies collisions as floor, wall or ceiling using Electron2D.CharacterBody2D.UpDirection.

Member Details

Floating

Kind: Enum value

public const Electron2D.CharacterBody2D.MotionModeEnum Floating

Summary

Classifies all slide collisions as walls.

Remarks

Use this mode for top-down movement where floor and ceiling classification should be ignored.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.CharacterBody2D.MotionModeEnum

Grounded

Kind: Enum value

public const Electron2D.CharacterBody2D.MotionModeEnum Grounded

Summary

Classifies collisions as floor, wall or ceiling using Electron2D.CharacterBody2D.UpDirection.

Remarks

Use this mode for platformers and other grounded characters.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.CharacterBody2D.MotionModeEnum

Clone this wiki locally