How to fix the entity z-axis, slide the screen to rotate the x-axis and y-axis in all camera perspectives

As the title says.
The z-axis is consistent with the z-axis direction of the world coordinate system

Hi @Near_Lee,

I didn’t fully understand what you are trying to do. But if you want to get where the local z-axis of the entity is pointing then you can use the forward property.

It will return the direction the entity is facing to:

var direction = this.entity.forward;