Y
Y
Yugg02019-01-26 18:11:16
2D
Yugg0, 2019-01-26 18:11:16

How to make an object look towards the player in Unity?

How to write C# code so that a 2D object (in my case <zombies>) looks towards the player.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
p4p, 2019-01-28
@YugGO

transform.right = target.position - transform.position;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question