Behavior : Interception

Author:Rex.Rainbow

Download

Properties

Initial state

  • Whether to initially have the behavior enabled or disabled.
    • Options : ["Disabled","Enabled"]

Actions

Target

Action:Lock

  • Lock to target instance.
    • Target ( object ) : Object of target

Action:Unlock

  • Unlock target.

Action:Lock by UID

  • Lock to target instance by UID.
    • Target ( number ) : UID of target

Expressions

Output

Expression:PredictX

  • Get predict position X.

Expression:PredictY

  • Get predict position Y.

Expression:ForceAngle

  • Get angle of total attracting force.

Expression:ForceMagnitude

  • Get magnitude of total attracting force.

Expression:ForceDx

  • Get dx of total attracting force.

Expression:ForceDy

  • Get dy of total attracting force.

Target

Expression:TargetUID

  • Get target instance UID. Return -1 if no target assigned.

Conditions

Output

Condition:Has force

  • Return true if force is not 0.

Target

Condition:Is locking

  • Return true if locking target.