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 / again about rotations

Author
Message
dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 23rd Aug 2003 19:34 Edited at: 23rd Aug 2003 19:41
i want to know the meaning of yrotate.

If i want the object rotate around its y axis, i haveto use YROTATE
in dbpro.

but if i want to rotate object around the y axis of the 3d space ???

The online help say the yrotate work on y-axis (of what?). It seems not too clear !
and of course is the same thing for all rotation commands:

x,y,z rotate : absolute rotation around x,y,z axis of the object
pitch,roll,turn : relative rotation around x,z,y axis of the object

nothing relative to the 3d space. I remember that in db the commands were relative to the 3d space.
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 23rd Aug 2003 22:50
no..... in DB there is noting relative to the 3d space.....
ALWAYS relative to the.....object itself...

but there is some.....trick you can use:

1-move your object
2-make a mesh

OK.....what it does?
when you will use the commande "make object" it will make the object... offseted at the same distance....that it was.. and his "rotation center" will be 0,0,0 .....i dont know if you understand............

i discovered this trick by error...to change the offset of the object.... you just need to do it each time you move your object.... otherwise... it will not rotate around the world axis....

if you dont understand what i mean i can do a little example.. just ask

dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 23rd Aug 2003 23:29
yes, if you can explain with a little example...

Although it's not easy to think this way for moving an object, does'nt it ?
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 24th Aug 2003 00:27 Edited at: 24th Aug 2003 00:28
ok here a little example (i dont know if you will understand much more.......)


Press SOURCE BUTTON...

dark puppus
21
Years of Service
User Offline
Joined: 16th Aug 2003
Location:
Posted: 24th Aug 2003 17:17
ok, i understanded, but i think i can't go this way. For now is the only way working, but this is not too comfortable.

Thank, maybe i create a function with this method.
MicroMan
21
Years of Service
User Offline
Joined: 19th Aug 2003
Location: Stockholm, Sweden
Posted: 25th Aug 2003 17:48
You could always simulate an absolute world coordinate centre using memblocks.



This way you could keep a position in the above memblock, and then compare every object in the game with it, and do what you require...

Login to post a reply

Server time is: 2024-09-20 21:31:20
Your offset time is: 2024-09-20 21:31:20