Wiki

Case Status
Log In

Wiki

 
Home ยป Action Reference»Transform Actions»Smooth Look At 2d
Index
Navigation
Community Wiki

Smooth Look At 2d

Smoothly Rotates a 2d Game Object so its right vector points at a Target. The target can be defined as a 2d Game Object or a 2d/3d world Position. If you specify both, then the position will be used as a local offset from the object's position.

Game Object
The GameObject to rotate to face a target.
Target Object
A target GameObject.
Target Position 2d
A target position. If a Target Object is defined, this is used as a local offset.
Target Position
A target position. If a Target Object is defined, this is used as a local offset.
Rotation Offset
Set the GameObject starting offset. In degrees. 0 if your object is facing right, 180 if facing left etc...
Speed
How fast the look at moves.
Debug
Draw a line in the Scene View to the look at position.
Finish Tolerance
If the angle to the target is less than this, send the Finish Event below. Measured in degrees.
Finish Event
Event to send if the angle to target is less than the Finish Tolerance.

 

Tags:

Last modified on 3/15/2016 2:28 AM by User.

  • RSS Feed