unreal.LookAtRotationPattern

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

Bases: PathedMovementPatternBase

Stare at a single fixed point at all times (pairs nicely with ellipse if you want to always look at the center)

C++ Source:

  • Plugin: Mover

  • Module: Mover

  • File: LookAtRotationPathPattern.h

Editor Properties: (see get_editor_property/set_editor_property)

  • custom_easing_curve (CurveFloat): [Read-Write] If using a custom ease, this is the curve that will be used. If blank, will fall back to standard linear interpolation.

  • debug_draw_pattern (bool): [Read-Write] True to draw debug lines for this specific pattern in editor views

  • easing (AlphaBlendOption): [Read-Write] The kind of easing to apply when traveling along the path

  • end_at_path_progress (float): [Read-Write] The overall path progress when this pattern should complete, where 0 is the start of the path and 1 is the end. Must be greater than StartAtProgress.

  • num_loops_per_path (int32): [Read-Write] The number of loops to complete within the active span of this pattern (i.e. between StartAtProgress and EndAtProgress) on a single run along the full aggregate path. Setting to 0 effectively disables this pattern.

  • orient_component_to_path (bool): [Read-Write] If true, the component will be rotated to face in the direction of this pattern’s motion. To have the component face in the direction of the aggregate path, enable this on all movement patterns.

  • pattern_debug_draw_color (Color): [Read-Write] The color used for debug draws of this pattern

  • per_loop_behavior (PathedPhysicsPlaybackBehavior): [Read-Write] Playback behavior per loop of this pattern

  • relative_look_at_location (Vector): [Read-Write] The location relative to the path origin to always look at while moving along the path

  • rotation_masks (uint8): [Read-Write] Along which axes is this pattern disallowed from modifying the rotation of the updated component?

  • scale_masks (uint8): [Read-Write] Along which axes is this pattern disallowed from modifying the scale of the updated component?

  • start_after_previous_pattern (bool): [Read-Write] If true, this pattern will not begin to take effect until the previous pattern has completed. Note: If true and the previous pattern’s EndAtPathProgress is 1, this pattern will never start.

  • start_at_path_progress (float): [Read-Write] The overall path progress when this pattern should begin, where 0 is the start of the path and 1 is the end. Must be less than EndAtProgress.

  • translation_masks (uint8): [Read-Write] Along which axes is this pattern disallowed from modifying the translation/location of the updated component?

set_look_at_location(look_at) None

Set Look at Location

Parameters:

look_at (Vector)

set_relative_look_at_location(relative_look_at) None

Set Relative Look at Location

Parameters:

relative_look_at (Vector)