unreal.AsyncMovementUtils¶
- class unreal.AsyncMovementUtils(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryAsyncMovementUtils: a collection of stateless static BP-accessible functions focused on testing potential movements in a threadsafe manner without actually causing immediate changes.
C++ Source:
Plugin: Mover
Module: Mover
File: AsyncMovementUtils.h
- classmethod test_depenetrating_move(moving_comps, start_location, target_location, start_rotation, target_rotation, should_sweep, out_move_record) (out_hit=HitResult, out_move_record=MovementRecord) or None¶
Tests potential movement of a component without actually moving it, taking penetration resolution issues into account first. Returns true if any movement was possible Modifies OutHit with final movement hit data Appends to InOutMoveRecord with any movement substeps
- Parameters:
moving_comps (MovingComponentSet)
start_location (Vector)
target_location (Vector)
start_rotation (Quat)
target_rotation (Quat)
should_sweep (bool)
out_move_record (MovementRecord)
- Returns:
out_hit (HitResult):
out_move_record (MovementRecord):
- Return type:
tuple or None
- classmethod test_sliding_move_along_hit_surface(moving_comps, original_move_delta, location_at_hit, target_rotation, out_hit, out_move_record) -> (float, out_hit=HitResult, out_move_record=MovementRecord)¶
Tests potential movement of a component sliding along a surface, without actually moving it. Returns the percent of time applied, with 0.0 meaning no movement would occur. Modifies InOutHit with final movement hit data Appends to InOutMoveRecord with any movement substeps
- Parameters:
moving_comps (MovingComponentSet)
original_move_delta (Vector)
location_at_hit (Vector)
target_rotation (Quat)
out_hit (HitResult)
out_move_record (MovementRecord)
- Returns:
out_hit (HitResult):
out_move_record (MovementRecord):
- Return type:
tuple