Hello! Very much a noob, so apologies for the ignorance but...
One thing I found annoying with EZrotate is that
EZRO_GY 10 tells it to rotate BY 10 degrees, rather than TO 10 degrees, as
yRotate Object x, 10 does. I also noticed that
EZRO_ObjGY seems to work in the latter way, but I can't get it to work! I made a super simple trial, but no luck. Can you please help me understand what I'm doing wrong?
Here's my code:
Make Object Box 1, 50, 10, 80
Position Object 1, 0, 0, 0
Position Camera 0, 40, -200
EZRO_SetupFromObject 1
EZRO_ObjGY 1, 45
EZRO_ApplyToObject 1
Suspend for Key
End
If I replace the EZRO stuff with
yRotate Object 1, 45, it rotates.
Ultimately, I'm trying to get my car to move over the terrain, pitching and rolling accordingly. I've got the angle I want the car to be at, and it
kind of works with
EZRO_GetEuler etc. but it gets out of sync quite quickly because of having to calculate the difference each time, rather than just the angle.
Would so much appreciate any help! Thank you!