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 / Trying to create an analogue clock.

Author
Message
xified
21
Years of Service
User Offline
Joined: 15th Aug 2003
Location: Pennsylvania - USA
Posted: 16th Aug 2003 07:09
Hello,
Is there a way to turn DB objects (boxes) on their edge, not their center, like the arms of an analogue clock?

I attached some code of two objects simulating 3:00. I set the left/right arrow keys to turn the hour hand, and the up/down keys to turn the minute hand, but they rotate around their center.

Any advice is greatly appreciated.

Cheers!
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 16th Aug 2003 17:08
I just constructed this on the fly so it may be buggy with the minutes hand.

what do you think I used one parent object and 3 limbs, then i glued primitves offset to the center of the limbs and then spun the limbs.



indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 16th Aug 2003 17:13
divide the minutes by 6 instead of five and that should be a good snippet

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 16th Aug 2003 17:37
dbp only , DBC doesnt offset the objects it seems

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 16th Aug 2003 18:34
if you create your objects outside of dbp (like milkshape or 3dmax) you can set the axis points anywhere on the object.

rustler

How do ya do there son
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 17th Aug 2003 01:32
You can modify 'centre' point of an object using OFFSET LIMB command. Youe modified code below.

The programmer formerly known as sonic
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
xified
21
Years of Service
User Offline
Joined: 15th Aug 2003
Location: Pennsylvania - USA
Posted: 17th Aug 2003 21:02
Thank you all very much. Excellent code indi. I am going to analyze it so I understand the concept fully. I really appreciate it.

Cheers!
xified
21
Years of Service
User Offline
Joined: 15th Aug 2003
Location: Pennsylvania - USA
Posted: 17th Aug 2003 21:10
Spooky, your mod is perfect. Thank you.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 18th Aug 2003 07:50
spooky wrote a much less winded version in the code snippets also

Login to post a reply

Server time is: 2024-09-20 19:32:22
Your offset time is: 2024-09-20 19:32:22