Hey! The only post I found close to answering my question was from about 12 years ago, and is very outdated so I’m asking this myself ![]()
Anyways, I’m making an enemy script, and I need the Enemy (Object script is on) to rotate towards the player (GameObjecct defined as player) Thanks!
Here’s an example of what I want…
transform.rotation = Rotation.rotateTo(player.transform, (Position to rotate from));
Btw: transform.LookAt(player.transform); Didn’t seem to work, I think it’s because it has a rigid body (Enemy & Player)