Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / EZRotate Basic Problem - Specific Angle on Global Axis

Author
Message
Blanked
20
Years of Service
User Offline
Joined: 27th Mar 2004
Location: UK
Posted: 21st Aug 2006 17:15
I apoligize if this has been answered before (I have searched though) but I've run into some problems with EZRotate.


In the code Snippet Below I wanted a ship to rotate towards a certain angle (rotate 90 degrees to the left to roll etc) when a key is pressed, I encountered a few problems with DarkBasics Eular angles as it caused the ship to rotate in very awkward angles when X, Y and Z rotations where mixed.

I went ahead and used EZrotate which has Global Roatation, unfortunately the command to rotate doesn't seem to allow me to rotate towards a specific angle and insted(as shown below) causes the ship to rotate constantly



Long Story short:

Is it possible with EZRotate-Basic to rotate on the global axis to a specific angle?

i.e make EZrotate behave like this:



but on the global axis?

Thank you in advance for assistance
Ron Erickson
Moderator
21
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Pittsburgh, PA, USA
Posted: 21st Aug 2006 19:02
You could reset the object's rotation to 0,0,0.
Then use the EZrotate global rotation commands to go to a specific angle.

EZrotate!
TextureMax!
3D Character Maker!
Blanked
20
Years of Service
User Offline
Joined: 27th Mar 2004
Location: UK
Posted: 21st Aug 2006 19:26
Thank you very much

It worked!
Ron Erickson
Moderator
21
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Pittsburgh, PA, USA
Posted: 21st Aug 2006 21:33
No problem. I'm glad it worked for you.

EZrotate!
TextureMax!
3D Character Maker!

Login to post a reply

Server time is: 2024-11-22 12:34:25
Your offset time is: 2024-11-22 12:34:25