unreal.AirMovementUtils

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

Bases: BlueprintFunctionLibrary

AirMovementUtils: a collection of stateless static BP-accessible functions for a variety of air movement-related operations

C++ Source:

  • Plugin: Mover

  • Module: Mover

  • File: AirMovementUtils.h

classmethod compute_controlled_free_move(params) ProposedMove

Generate a new movement based on move/orientation intents and the prior state, unconstrained like when flying

Parameters:

params (FreeMoveParams)

Return type:

ProposedMove

classmethod is_valid_landing_spot(moving_comps, location, hit, floor_sweep_distance, max_walk_slope_cosine, use_flat_base_for_floor_checks, out_floor_result) FloorCheckResult or None

Checks if a hit result represents a walkable location that an actor can land on

Parameters:
Returns:

out_floor_result (FloorCheckResult):

Return type:

FloorCheckResult or None

classmethod test_falling_move_along_hit_surface(moving_comps, original_move_delta, location_at_hit, target_rotation, handle_impact, floor_sweep_distance, max_walk_slope_cosine, use_flat_base_for_floor_checks, out_hit, out_floor_result, out_move_record) -> (float, out_hit=HitResult, out_floor_result=FloorCheckResult, out_move_record=MovementRecord)

Tests potential movement of a component falling/sliding along a surface, while checking for landing on a walkable surface. Intended for use while falling. Modifies InOutHit with final movement hit data Sets OutFloorResult with any found walkable surface info Appends to InOutMoveRecord with any movement substeps Returns the percent of time applied, with 0.0 meaning no movement would occur.

Parameters:
Returns:

out_hit (HitResult):

out_floor_result (FloorCheckResult):

out_move_record (MovementRecord):

Return type:

tuple

classmethod try_move_to_fall_along_surface(moving_comps, delta, pct_of_delta_to_move, rotation, normal, hit, handle_impact, floor_sweep_distance, max_walk_slope_cosine, use_flat_base_for_floor_checks, out_floor_result, move_record) -> (float, hit=HitResult, out_floor_result=FloorCheckResult, move_record=MovementRecord)

Attempts to move a component along a surface, while checking for landing on a walkable surface. Intended for use while falling. Returns the percent of time applied, with 0.0 meaning no movement occurred.

Parameters:
Returns:

hit (HitResult):

out_floor_result (FloorCheckResult):

move_record (MovementRecord):

Return type:

tuple