Calculate Direction

Description

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

 

Properties

Triggers Immediately

Object A By default this is the current object selected. You can change this to any other object in your scene.
Object B Another object in your scene to calculate the vector between.
Anchor Use the anchor to offset the position. By default the vector is calculated between the center of 2 objects.
Normalize Vectors If 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.

 

Related

Calculate Distance

Get Bounding Box

Get Time

Is Intersecting

 

CalculateDirectionReference.gif

0 Comments

Article is closed for comments.