unreal.MoverSimulation

class unreal.MoverSimulation(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

WIP Base class for a Mover simulation. The simulation is intended to be the thing that updates the Mover state and should be safe to run on an async thread

C++ Source:

  • Plugin: Mover

  • Module: Mover

  • File: MoverSimulation.h

attempt_teleport(time_step, target_transform, use_actor_rotation) MoverSyncState

Attempt to teleport to TargetTransform. The teleport is not guaranteed to happen. This function is meant to be called by an instant movement effect as part of its effect application. If it succeeds a FTeleportSucceededEventData will be emitted, if it fails a FTeleportFailedEventData will be sent.

Parameters:
  • time_step (MoverTimeStep) – The time step of the current step or substep being simulated. This will come from the ApplyMovementEffect function.

  • target_transform (Transform) – The transform to teleport to. In the case bUseActorRotation is true, the rotation of this transform will be ignored.

  • use_actor_rotation (bool) – If true, the rotation will not be modified upon teleportation. If false, the rotation in TargetTransform will be used to orient the teleported.

Returns:

output_state (MoverSyncState): This is the sync state that me modified as a result of the application of this effect. Like TimeStep, this should come from the ApplyMovementEffect function.

Return type:

MoverSyncState

get_blackboard() MoverBlackboard

Warning: the regular blackboard will be fully replaced by the rollback blackboard in the future

Return type:

MoverBlackboard

get_blackboard_mutable() MoverBlackboard

Warning: the regular blackboard will be fully replaced by the rollback blackboard in the future

Return type:

MoverBlackboard

get_next_mode_name() Name

Gets the anticipated next mode, either the next queued one or the current mode.

Return type:

Name

get_rollback_blackboard_prediction_wrapper() RollbackBlackboardSimWrapper

Get accessor for the blackboard to be used predictively. You can read from it, but any writes will be temporary and thrown away once prediction is finished.

Return type:

RollbackBlackboardSimWrapper

get_rollback_blackboard_sim_wrapper() RollbackBlackboardSimWrapper

Get Rollback Blackboard Sim Wrapper

Return type:

RollbackBlackboardSimWrapper

queue_next_mode(mode_change_params) None

Queues a mode change for the next opportunity. This function is intended to be threadsafe and can be called from inside or outside of the simulation.

Parameters:

mode_change_params (ModeChangeParams)

register_movement_mode(mode_register_params) None

Registers a new movement mode for use in the simulation.

Parameters:

mode_register_params (ModeRegistrationParams)

unregister_movement_mode(mode_register_params) None

Unregisters a movement mode from the simulation

Parameters:

mode_register_params (ModeRegistrationParams)