Loading...

Logo
DocumentationBehaviorsLogicCalculate Direction
Logic

Calculate Direction

Last updated September 28, 2018

Description

Calculates the vector between 2 objects. The vector goes from Object A to Object B.

Properties

Triggers Immediately

Object ABy default this is the current object selected. You can change this to any other object in your scene.
Object BAnother object in your scene to calculate the vector between.
AnchorUse the anchor to offset the position. By default the vector is calculated between the center of 2 objects.
Normalize VectorsIf this is toggled on, the vectors will be normalized, meaning they will output in the range of -1 to 1.

Outputs

Vector X

Outputs the direction on the X-axis as a vector value.

Vector Y

Outputs the direction on the Y-axis as a vector value.

Angle

Outputs the angle between the two objects.

Calculate Distance

Get Bounding Box

Get Time

Is Intersecting

CalculateDirectionReference.gif