[SOLVED] Change rotation values

Hi, I have that:

this.entity.setRotation(this.camera.getRotation());

But I need add a (90,0,0) rotation to this entity too. How can I do that?

set/getRotation() returns a quaternion whereas it seems like you want to work with euler angles. Look at set/getEulerAngles functions instead.

2 Likes

Oh, That solves everything!! Thanks!