lookAt is not working at all

Im trying to set my camera to lookAt player but i tried so many things and i still cant make it work: here is the code. I have tried two methods both are in code:

@smokys heres what you do :


this.entity.lookAt(this.playerEntity.getLocalPosition());

Great, it helped, thanks:)

1 Like

lookAt takes a pc.Vec3 as a parameter for the position to rotate at, not a pc.Entity.

1 Like