Hello, I’m having some trouble getting an object to move and rotate on its own axis. Here’s my code
// Moving works the way I want it to
transform.position = transform.TransformDirection(Vector3(moveX, moveY, moveZ));
// But it rotates around the world origin. But if I comment out the first line it rotates locally
transform.eulerAngles = Vector3(rotX, rotY, rotZ);
I’ve also tried using localEulerAngles instead but that still doesn’t do anything