entity.lookAt not rotating entity

I am making a backrooms - style game. I have a monster that will look at the player and move forward:

// this.player is a property set and is the player entity
this.entity.lookAt(this.player.getPosition());

The monster moves toward the player. However, it does not actually change rotation in the game. How do I fix it?
EDITOR LINK: PlayCanvas | HTML5 Game Engine

Hi @Frederick_Ziola and welcome! Unfortunately, you can not use lookAt() directly on an entity with a dynamic rigidbody. In the project below you can see how you can do this with a little different setup.

https://playcanvas.com/project/808772/overview/look-at-with-physics

2 Likes