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.

DarkBASIC Discussion / Object Rotation

Author
Message
alpha numeric characters
21
Years of Service
User Offline
Joined: 17th Jan 2004
Location:
Posted: 11th Dec 2004 10:38
My problem here is that i want to move an object both horizontally and vertically without it slanting. In this code on the camera control i can get it to rotate horizontally and keep the object facing straight, but when I try to pitch it it rotates and falls off from being straight.

Ali M Oldboy
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 11th Dec 2004 16:13
I guess this is for an FPS? I can help

Are you mad? I am!

(It's me, N U K E S O F T!)
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 11th Dec 2004 18:31
The joy of Euler Angles!

Philip has done a tutorial on Eulers, and it gets quite complex. Do a search for Euler on the forums.

If you had DB Pro, the answer would be to get EZ Rotate. The fact that EZ Rotate sells is indicative of how messy Euler angles can get if you don't have the knowledge.

BatVink
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 11th Dec 2004 22:21 Edited at: 11th Dec 2004 22:24
so where is your help Ali M cos I want to know as well.
I also did a search for euler and found nothing( I really think the search option needs looking at)
alpha numeric characters
21
Years of Service
User Offline
Joined: 17th Jan 2004
Location:
Posted: 12th Dec 2004 01:32
Ali M> Yes it is and fps, so you can help? i just want to keep the gun straight except when moving it up and down. When ever i go at a diagnol angle it rotates to positions it shouldn't be in.

I have been experimenting and this will sort of work, but it still has slight rocking motions on movement and it won't allow the object to move as high/low as i wantit too.

BatVink> The search results can out with nothing for euler angles.

Login to post a reply

Server time is: 2025-05-24 10:06:22
Your offset time is: 2025-05-24 10:06:22