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.

Newcomers DBPro Corner / Roll while turning?

Author
Message
mikewhl
14
Years of Service
User Offline
Joined: 19th Jul 2010
Location: Columbus,Ohio
Posted: 29th Aug 2010 22:41 Edited at: 29th Aug 2010 23:09
Hi all,
Is there anyway to roll an object while turning that will not change the objects y position?
If I do a turn and roll my object fly's off into the void. I cannot seem to separate the two.
I've tried both types rotate and pitch, roll, turn.

This is how I am controlling the ship now.



some cool stuff someone else said here
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 30th Aug 2010 00:00
PITCH OBJECT
This command will rotate an existing 3D object to pitch upwards. The rotation is independent of any axis
orientation and allows free motion. The value of the angle can be positive or negative. The object number
must be specified using an integer value. The angle must be specified using a real value. Be aware that
you cannot use EULER ANGLES in combination with this command. Euler angles are accessed with the
ROTATE OBJECT command, whereas Freeflight commands are accessed with the TURN, PITCH and ROLL
commands.

you cannot use object y angle rotation to turn in combination with pitch and roll
replace y rotation with TURN object
mikewhl
14
Years of Service
User Offline
Joined: 19th Jul 2010
Location: Columbus,Ohio
Posted: 30th Aug 2010 00:35 Edited at: 30th Aug 2010 03:05
I have read that before. If I use x,y,z Rotate object, or roll, turn, pitch object, the results are the same.
Combining turn with roll, or z and y rotate gives me unexpected results.

I am trying to y rotate and z rotate at the same time, without changing my y position ("climbing or diving"). Kind of like an airplane, but with no gravity.

mike

put this in your code snippets;
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 30th Aug 2010 22:37
are you looking for this effect?
mikewhl
14
Years of Service
User Offline
Joined: 19th Jul 2010
Location: Columbus,Ohio
Posted: 31st Aug 2010 01:21 Edited at: 31st Aug 2010 03:48
Yes. That is just what I wanted!
I see that you did that with a limb.
But I don't see how it works.

Edit: For some reason when I try this code out in my game, the ship will not turn. I have no ideal why it will not work.

Edit2: Got it, forgot to change a couple of object numbers! Noob!



Thank you Scorpyo

put this in your code snippets, code lang = dbp
mikewhl
14
Years of Service
User Offline
Joined: 19th Jul 2010
Location: Columbus,Ohio
Posted: 31st Aug 2010 03:08 Edited at: 31st Aug 2010 03:10
Try this code snippet again.
BTW...These are some really nice functions.



Don't know why it did't work in the last post.

Mike

put this in your code snippets, code lang = dbp

Login to post a reply

Server time is: 2024-11-24 11:36:47
Your offset time is: 2024-11-24 11:36:47