-
Notifications
You must be signed in to change notification settings - Fork 0
CharacterBody2D PlatformOnLeaveEnum
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.CharacterBody2D.PlatformOnLeaveEnum |
| Namespace | Electron2D |
| Kind | enum |
| Category | Physics |
Identifies how platform velocity should be applied when leaving a platform.
public enum Electron2D.CharacterBody2D.PlatformOnLeaveEnum : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattableProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: CharacterBody2D.PlatformOnLeave
Platform leave policy values reserved for the kinematic movement API.
The 0.1.0 Preview baseline exposes this policy as part of the public movement contract. Complex leave behavior is reserved for a later solver pass.
This enum is available since Electron2D 0.1.0 Preview.
Electron2D.CharacterBody2D.PlatformOnLeave
| Member | Kind | Summary |
|---|---|---|
AddUpwardVelocity |
Enum value | Add upward platform velocity while ignoring downward platform velocity. |
AddVelocity |
Enum value | Add the last platform velocity on leave. |
DoNothing |
Enum value | Do not add platform velocity on leave. |
Kind: Enum value
public const Electron2D.CharacterBody2D.PlatformOnLeaveEnum AddUpwardVelocityAdd upward platform velocity while ignoring downward platform velocity.
This policy is intended for moving platforms that should not pull the character downward after contact ends.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.CharacterBody2D.PlatformOnLeaveEnum
Kind: Enum value
public const Electron2D.CharacterBody2D.PlatformOnLeaveEnum AddVelocityAdd the last platform velocity on leave.
This is the default policy.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.CharacterBody2D.PlatformOnLeaveEnum
Kind: Enum value
public const Electron2D.CharacterBody2D.PlatformOnLeaveEnum DoNothingDo not add platform velocity on leave.
Use this policy when platform velocity should only be reported
through Electron2D.CharacterBody2D.GetPlatformVelocity.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.CharacterBody2D.PlatformOnLeaveEnum
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.