[SOLVED] I need help with a rotation problem

I am working on a group project and I need help fixing a bug, the camera will not stop rotating after it starts rotating, can someone help me fix this
The Script that needs help: PlayCanvas | HTML5 Game Engine
The Game scene this script is for: PlayCanvas | HTML5 Game Engine

I would suggest to try to use this.entity.getEulerAngles() instead of this.entity.getRotation().

Also the last function is not closed correctly, because it’s missing a ; sign at the end.

it is still going past the intended limit

but this.entity.getLocalEulerAngles() did work

1 Like