I'm having a problem with my VTOL rotation script:
Vector3 rotationTorque = new Vector3(-mouseY * mouseSensitivity, mouseX * mouseSensitivity, 0);
Vector3 currentRotation = VTOLBody.transform.eulerAngles;
currentRotation.z = 0;
VTOLBody.transform.eulerAngles = currentRotation;
rb.AddRelativeTorque(rotationTorque);
if (Input.GetKey(KeyCode.Space))
{
rb.AddForce(Vector3.up * vtolForwardSpeed, ForceMode.Force);
}
if (Input.GetKey(KeyCode.LeftShift))
{
rb.AddForce(-Vector3.up * vtolForwardSpeed, ForceMode.Force);
}
Vector3 moveDirection = VTOLBody.transform.forward * pitchInput + VTOLBody.transform.right * rollInput;
moveDirection.y = 0;
moveDirection.Normalize();
rb.AddForce(moveDirection * vtolHoverSpeed, ForceMode.Force);
Debug.DrawLine(VTOLBody.transform.position, VTOLBody.transform.position + VTOLBody.transform.forward * 15f, Color.blue);```
The rotation for the body stutters with the more I move the mouse. Rb is set to interpolate and this code is inside FixedUpdate(). I'm assigning mouse input inside Update()



Doubt it, it's just one of the HDRP materials, let me go find it