I have this plane and i am trying to make the mouse be the object that the plane follows
i have made the plane look at the mouse but i want it so that if i make it look left and press the forward button it will go towards the direction my mouse is pointing to instead of just looking left but still going forward.
any help will be appreciated.
Are you currently using transform.Translate( Vector3.forward * Time.deltaTime );?
In that case you would need to calculate a new vector instead of using Vector3.forward. For example:
var heading = Input.mousePosition - gameObject.position;
transform.Translate( heading * Time.deltaTime );
Or, alternatively, you could use:
var targetPos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
transform.position = Vector3.MoveTowards(transform.position, targetPos, moveSpeed * Time.deltaTime);