unreal.BaseMovementMode¶
- class unreal.BaseMovementMode(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectBase class for all movement modes, exposing simulation update methods for both C++ and blueprint extension
C++ Source:
Plugin: Mover
Module: Mover
File: MovementMode.h
Editor Properties: (see get_editor_property/set_editor_property)
gameplay_tags(GameplayTagContainer): [Read-Write] A list of gameplay tags associated with this movement modeshared_settings_classes(Array[type(Class)]): [Read-Write] Settings object type that this mode depends on. May be shared with other movement modes. When the mode is added to a Mover Component, it will create a shared instance of this settings class.supports_async(bool): [Read-Write] Whether this movement mode supports being part of an asynchronous movement simulation (running concurrently with the gameplay thread) Specifically for the GenerateMove and SimulationTick functionstransitions(Array[BaseMovementModeTransition]): [Read-Write] Transition checks for the current mode. Evaluated in order, stopping at the first successful transition check
- generate_move(start_state, time_step, out_proposed_move) ProposedMove¶
Generate Move
- Parameters:
start_state (MoverTickStartData)
time_step (MoverTimeStep)
out_proposed_move (ProposedMove)
- Returns:
out_proposed_move (ProposedMove):
- Return type:
- get_mover_component() MoverComponent¶
Gets the MoverComponent that owns this movement mode
- Return type:
- k2_on_generate_move(start_state: MoverTickStartData, time_step: MoverTimeStep, out_proposed_move: ProposedMove) ProposedMove¶
deprecated: ‘k2_on_generate_move’ was renamed to ‘generate_move’.
- k2_on_simulation_tick(params: SimulationTickParams, output_state: MoverTickEndData) MoverTickEndData¶
deprecated: ‘k2_on_simulation_tick’ was renamed to ‘simulation_tick’.
- simulation_tick(params, output_state) MoverTickEndData¶
Simulation Tick
- Parameters:
params (SimulationTickParams)
output_state (MoverTickEndData)
- Returns:
output_state (MoverTickEndData):
- Return type:
- property supports_async: bool¶
[Read-Only] Whether this movement mode supports being part of an asynchronous movement simulation (running concurrently with the gameplay thread) Specifically for the GenerateMove and SimulationTick functions
- Type:
(bool)