-
Notifications
You must be signed in to change notification settings - Fork 0
CharacterBody2D MotionModeEnum
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.CharacterBody2D.MotionModeEnum |
| Namespace | Electron2D |
| Kind | enum |
| Category | Physics |
Identifies how collisions are classified during slide movement.
public enum Electron2D.CharacterBody2D.MotionModeEnum : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattableProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: CharacterBody2D.MotionMode
Grounded and floating collision classification modes.
The mode changes how Electron2D.CharacterBody2D.MoveAndSlide interprets collision
normals when updating Electron2D.CharacterBody2D.IsOnFloor, Electron2D.CharacterBody2D.IsOnWall
and Electron2D.CharacterBody2D.IsOnCeiling.
This enum is available since Electron2D 0.1.0 Preview.
Electron2D.CharacterBody2D.MotionMode
| 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. |
Kind: Enum value
public const Electron2D.CharacterBody2D.MotionModeEnum FloatingClassifies all slide collisions as walls.
Use this mode for top-down movement where floor and ceiling classification should be ignored.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.CharacterBody2D.MotionModeEnum
Kind: Enum value
public const Electron2D.CharacterBody2D.MotionModeEnum GroundedClassifies collisions as floor, wall or ceiling using Electron2D.CharacterBody2D.UpDirection.
Use this mode for platformers and other grounded characters.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.CharacterBody2D.MotionModeEnum
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.