unreal.AirMovementUtils¶
- class unreal.AirMovementUtils(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryAirMovementUtils: 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:
- 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:
moving_comps (MovingComponentSet)
location (Vector)
hit (HitResult)
floor_sweep_distance (float)
max_walk_slope_cosine (float)
use_flat_base_for_floor_checks (bool)
out_floor_result (FloorCheckResult)
- 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:
moving_comps (MovingComponentSet)
original_move_delta (Vector)
location_at_hit (Vector)
target_rotation (Quat)
handle_impact (bool)
floor_sweep_distance (float)
max_walk_slope_cosine (float)
use_flat_base_for_floor_checks (bool)
out_hit (HitResult)
out_floor_result (FloorCheckResult)
out_move_record (MovementRecord)
- 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:
moving_comps (MovingComponentSet)
delta (Vector)
pct_of_delta_to_move (float)
rotation (Quat)
normal (Vector)
hit (HitResult)
handle_impact (bool)
floor_sweep_distance (float)
max_walk_slope_cosine (float)
use_flat_base_for_floor_checks (bool)
out_floor_result (FloorCheckResult)
move_record (MovementRecord)
- Returns:
hit (HitResult):
out_floor_result (FloorCheckResult):
move_record (MovementRecord):
- Return type:
tuple