unreal.MotionWarpingSwitchOffAngleToTargetCondition

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

Bases: MotionWarpingSwitchOffCondition

Motion Warping Switch Off Angle to Target Condition

C++ Source:

  • Plugin: MotionWarping

  • Module: MotionWarping

  • File: MotionWarpingSwitchOffCondition.h

Editor Properties: (see get_editor_property/set_editor_property)

  • angle (float): [Read-Write]

  • effect (SwitchOffConditionEffect): [Read-Write]

  • ignore_z_axis (bool): [Read-Write]

  • operator (SwitchOffConditionAngleOp): [Read-Write]

  • use_warp_target_as_target_location (bool): [Read-Write] If set to false, switch off condition will use target actor location

classmethod create_switch_off_angle_to_target_condition(owner_actor, effect, operator, angle, ignore_z_axis, use_warp_target_as_target_location=True, target_actor=None) -> (MotionWarpingSwitchOffAngleToTargetCondition, owner_actor=Actor)

Creates Switch Off Angle To Target Condition that checks angle between Owner Actor and Target Location. If Use Warp Target Location is true, Target Location is corresponding Warp Target’s location. If Use Warp Target Location is false, Target Location is Target Actor’s parameter location.

Parameters:
  • owner_actor (Actor) – Actor owning Motion Warping Component to which this switch off condition will be added.

  • effect (SwitchOffConditionEffect) – What should happen if switch off condition is true

  • operator (SwitchOffConditionAngleOp) – Angle comparison operator

  • angle (float) – Angle to compare to

  • ignore_z_axis (bool) – Should ignore Z axis in Angle comparison

  • use_warp_target_as_target_location (bool) – Should use corresponding warp target as context for this Switch Off Condition. If set to false, will use TargetActor parameter

  • target_actor (Actor) – Target Actor to use as a context for this Switch Off Condition if Use Warp Target As Location parameter is false.

Returns:

Created Switch Off Condition. This Switch Off Condition can be added to Motion Warping Component with Add Switch Off Condition node.

owner_actor (Actor): Actor owning Motion Warping Component to which this switch off condition will be added.

Return type:

Actor