This components lets GameObject to rotate towards an Object
Last updated 4 years ago
Was this helpful?
Component Author: Release Date: April 13, 2020
new LookAtObject();
setTarget(GameObject t); // Sets the target to a GameObject setTarget(Vector2 t); // Sets target to a Vector2 getTargetGameObject(); // Returns GameObject