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 Professional Discussion / 3d object rotation axis

Author
Message
Justice
22
Years of Service
User Offline
Joined: 22nd Jun 2004
Location:
Posted: 6th Jan 2015 19:48
Hi,

I have a 3d coin which I downloaded & in my program I am spinning it.

But the yaxis of the object does not run through the middle of the object (it runs through the left outer edge) so when I spin it it doesn't look right.

I want the yaxis to run through the middle of the coin, so I spins correctly.

Is there a way to move the axis in my program ?
29 games
20
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 6th Jan 2015 20:12
Yes you can by using the "offset limb" command and offsetting the limb zero.

Here's an example:



This does the opposite of what you're trying to do (ie it moves the centre point to the edge of the object) but it shows how to use the command.

Justice
22
Years of Service
User Offline
Joined: 22nd Jun 2004
Location:
Posted: 6th Jan 2015 22:03
great thx, I'll try that

Login to post a reply

Server time is: 2026-07-05 03:50:55
Your offset time is: 2026-07-05 03:50:55