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.

2D All the way! / clock hands?

Author
Message
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 29th Oct 2007 03:36
hmm. ive been trying to figure this our for awhile now.

PROBLEM : making a clock
SNAG : the hand is made up of x amount of sprites, not just 1 sprite.

ISSUE: So yea, basicly, if you were to make a clock hand that rotates around a pivot point in DBPRO, it wouldnt be that hard right, but i want my clock hand to be made up of x parts so you cant just say 'rotate sprite x,a'

THOUGHT: first i tried to reset the offset point of all the parts to the center of clock, but that didnt work at all.
second, i realized that if you rotate each part 1 degree, theres only 1 side missing from an isoseles triangle. in an isoseles triangle, 2 sides are the same, meaning 2 of the angles are the same. if its rotating 1 degree, the other 2 angles MUST both be 89.5 because 89.5 + 89.5 + 1 = 180, the sum of a triangle. if you draw a line from the 1 degree angle to bisect the base of the triangle, you get 2 conguent right triangles. So if i find the distance of bisecting line segment, and the distance, of 1 of the conquent sides of the isoseles, shouldnt i be able to use the polageroeom theorem (a^2)+(b^2)=c^2? and then take c and multiply by 2 to get the original base of the isoseles triangle? and then once i have rotated a part 1 degree, move it that base value?
I thought i coul, but it doesnt work at all

CONCLUSION: so, im stuck... any one have any ideas? dont you love trig.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroupproductions.com/
Zergei
20
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 29th Oct 2007 05:23
You mean something like this?



Sorry, for the lame code, but did it in 5 min, it was late here.
If it is not it, then just gimme a bit more feedback and i'll se if i can help you further on.

Further on my stuff at...
TurboSquid.com
The3dStudio.com

Attachments

Login to view attachments
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 29th Oct 2007 12:53
YES! thank you. i coudnlt figure that out, thank you soooo much.


"these shoes are 300 hundred dollars"-Shoes by Kelly http://smallgroupproductions.com/

Login to post a reply

Server time is: 2025-05-14 17:54:02
Your offset time is: 2025-05-14 17:54:02