Behavior : Interception
Author:Rex.Rainbow
- Predict the point of intersection. It assumes that objects move with constant speed.
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
Action:Lock by UID
- Lock to target instance by UID.
- Target ( number ) : UID of target
Expressions
Output
Expression:PredictX
Expression:PredictY
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.