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.

Dark GDK / Rotating an object before placement.

Author
Message
Reflux
15
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 21st Mar 2009 17:32
Just a little problem. I've loaded a 3D Object.. But its pointing the wrong way. I've tried to rotate the object 180 degrees using dbYRotateObject(ObjNo., 180); etc. But it wont rotate because I am also pointing the object to a specified point during the loop. Code:


During my object declarations I have this:


No matter what degree I try to rotate it.. the PointObject takes priority over my first rotation. Is there any way to change the "front" of the 3D Object without rotating it?

Thank You.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Mar 2009 18:15
dbFixObjectPivot()

Rotate your object so that it faces the way that you want correctly, then dbFixObjectPivot() to 'fix' that rotation - further rotations will take into account the 'fixed' rotation.

Reflux
15
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 22nd Mar 2009 15:21
Awesome. Worked perfectly.. Thanks alot.

Login to post a reply

Server time is: 2024-09-30 21:38:54
Your offset time is: 2024-09-30 21:38:54