So basically I want to use transform.LookAt() with my sprite but it faces it in a way that it’s impossible to see from 2D view.
(don’t ask about name of photo I couldn’t be bothered to think of something to put)
I want it to face the target so you can see it. Heres my script btw
#pragma strict
var target : Transform;
var bulletSpeed : float = 10;
private var overallSpeed : float;
function Update () {
overallSpeed = bulletSpeed * Time.deltaTime;
transform.LookAt (target);
transform.position = Vector3.MoveTowards(transform.position, target.position, overallSpeed);
}
Thanks In Advance