unreal.LayeredMoveBase

class unreal.LayeredMoveBase(mix_mode: MoveMixMode = Ellipsis, priority: int = 0, duration_ms: float = 0.0, start_sim_time_ms: float = 0.0, finish_velocity_settings: LayeredMoveFinishVelocitySettings = Ellipsis)

Bases: StructBase

Layered Moves are methods of affecting motion on a Mover-based actor, typically for a limited time. Common uses would be for jumping, dashing, blast forces, etc. They are ticked as part of the Mover simulation, and produce a proposed move. These proposed moves are aggregated and applied to the overall attempted move. Multiple layered moves can be active at any time, and may produce additive motion or motion that overrides what the current Movement Mode may intend. // Base class for all layered moves

C++ Source:

  • Plugin: Mover

  • Module: Mover

  • File: LayeredMove.h

Editor Properties: (see get_editor_property/set_editor_property)

  • duration_ms (float): [Read-Write] This move will expire after a set amount of time if > 0. If 0, it will be ticked only once, regardless of time step. It will need to be manually ended if < 0.

  • finish_velocity_settings (LayeredMoveFinishVelocitySettings): [Read-Write] Settings related to velocity applied to the actor after a layered move has finished

  • mix_mode (MoveMixMode): [Read-Write] Determines how this object’s movement contribution should be mixed with others

  • priority (uint8): [Read-Write] Determines if this layered move should take priority over other layered moves when different moves have conflicting overrides - higher numbers taking precedent.

  • start_sim_time_ms (float): [Read-Only] The simulation time this move first ticked (< 0 means it hasn’t started yet)

property duration_ms: float

[Read-Write] This move will expire after a set amount of time if > 0. If 0, it will be ticked only once, regardless of time step. It will need to be manually ended if < 0.

Type:

(float)

property finish_velocity_settings: LayeredMoveFinishVelocitySettings

[Read-Write] Settings related to velocity applied to the actor after a layered move has finished

Type:

(LayeredMoveFinishVelocitySettings)

property mix_mode: MoveMixMode

[Read-Write] Determines how this object’s movement contribution should be mixed with others

Type:

(MoveMixMode)

property priority: int

[Read-Write] Determines if this layered move should take priority over other layered moves when different moves have conflicting overrides - higher numbers taking precedent.

Type:

(uint8)

property start_sim_time_ms: float

[Read-Only] The simulation time this move first ticked (< 0 means it hasn’t started yet)

Type:

(float)