unreal.MotionTrajectoryBlueprintLibrary
¶
- class unreal.MotionTrajectoryBlueprintLibrary(outer=None, name='None')¶
Bases:
unreal.BlueprintFunctionLibrary
Motion Trajectory Blueprint Library
C++ Source:
Plugin: MotionTrajectory
Module: MotionTrajectory
File: MotionTrajectoryLibrary.h
- classmethod clamp_trajectory_direction(trajectory, directions) TrajectorySampleRange ¶
Projects trajectory samples onto a defined set of allowed directions
- Parameters
trajectory (TrajectorySampleRange) – Input trajectory range
directions (Array(TrajectoryDirectionClamp)) – Input direction clamping, containing angle thresholds for determining source to target direction
- Returns
Direction clamped, modified trajectory range
- Return type
- classmethod debug_draw_trajectory(actor, world_transform, trajectory, prediction_color=[0.000000, 0.000000, 0.000000, 0.000000], history_color=[0.000000, 0.000000, 0.000000, 0.000000], arrow_scale=0.025000, arrow_size=40.000000, arrow_thickness=2.000000) None ¶
Projects trajectory samples onto a defined set of allowed directions
- Parameters
actor (Actor) –
world_transform (Transform) – Input world transform to establish a world-space basis for drawing the trajectory
trajectory (TrajectorySampleRange) – Input trajectory range
prediction_color (LinearColor) – Input prediction color to interpolate sample drawing towards
history_color (LinearColor) – Input historical color to interpolate sample drawing towards
arrow_scale (float) – Input sample velocity draw scale
arrow_size (float) – Input sample arrow draw size
arrow_thickness (float) – Input sample arrow draw thickness
- classmethod flatten_trajectory2d(trajectory, preserve_speed=True) TrajectorySampleRange ¶
Removes the Z axis motion contribution from a trajectory range
- Parameters
trajectory (TrajectorySampleRange) – Input trajectory range
preserve_speed (bool) – Input bool determining if velocity magnitude is preserved (true) or projected (false)
- Returns
Z axis flattened, modified trajectory range
- Return type