unreal.AvaLookAtModifier

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

Bases: AvaAttachmentBaseModifier

Rotates the modifying actor to point it’s specified axis at another actor.

C++ Source:

  • Plugin: Avalanche

  • Module: AvalancheModifiers

  • File: AvaLookAtModifier.h

Editor Properties: (see get_editor_property/set_editor_property)

  • axis (AvaAxis): [Read-Write] The axis that will point towards the reference actor.

  • flip_axis (bool): [Read-Write] If true, will flip the look-at direction.

  • modifier_enabled (bool): [Read-Write] Is the modifier enabled or disabled

  • reference_actor (AvaSceneTreeActor): [Read-Write]

  • reference_actor_weak (Actor): [Read-Write] The actor to look at. deprecated: Use ReferenceActor instead

property axis: AvaAxis

[Read-Write] The axis that will point towards the reference actor.

Type:

(AvaAxis)

property flip_axis: bool

[Read-Write] If true, will flip the look-at direction.

Type:

(bool)

get_axis() AvaAxis

Returns the axis that will point towards t he reference actor.

Return type:

AvaAxis

get_flip_axis() bool

Returns true if flipping the look-at rotation axis.

Return type:

bool

get_reference_actor() AvaSceneTreeActor

Get Reference Actor

Return type:

AvaSceneTreeActor

property reference_actor: AvaSceneTreeActor

[Read-Write]

Type:

(AvaSceneTreeActor)

property reference_actor_weak: Actor

[Read-Write] The actor to look at. deprecated: Use ReferenceActor instead

Type:

(Actor)

set_axis(new_axis) None

Sets the axis that will point towards the reference actor.

Parameters:

new_axis (AvaAxis) –

set_flip_axis(new_flip_axis) None

Sets the look-at direction to be flipped.

Parameters:

new_flip_axis (bool) –

set_reference_actor(reference_actor) None

Set Reference Actor

Parameters:

reference_actor (AvaSceneTreeActor) –