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 / How do I know which site of the dice is on top?

Author
Message
Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 13th Jan 2007 20:55 Edited at: 13th Jan 2007 21:10
I'm making a 3D Yahtzee game so I have 5 dices to roll.
But when I trown them how do I know which side is on top?
Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 13th Jan 2007 20:56 Edited at: 13th Jan 2007 20:57
dont u mean SIDE not SITE? because you posted site twice

Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 13th Jan 2007 21:15 Edited at: 13th Jan 2007 21:17
Yes I do
Dutchies always have problems with the D-T
I'm always on this site but my question still isn't answered...
By the way: How can I edit the subject line?
Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 13th Jan 2007 21:15
not sure how to edit that, i would if i could on my posts too

Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 13th Jan 2007 23:27
You'd go by faces:
I don't know the exact number placement on each faces but
Since it always falls flat, checking the object angle x() you already got 4 solutions:
if angle x()=0 face 1 representing number x will be on top
if angle x()=90 the next face (next number) will be on top
angle x()=180 will be the 3rd face on top
angle x()=270 will be the 4th face on top

the other 2 faces will be on top at angle z() = 90 and angle z()=270

linking the numbers on each face and each face top position to its specific object angle it should do the trick.
Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 14th Jan 2007 18:22
Thanks Scorpyo
That works...
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 14th Jan 2007 18:27
Quote: "Dutchies always have problems with the D-T"


No they dont,look at me and Benjamin A...

Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 14th Jan 2007 18:57
What I meant was in the Dutch language... Joking...

Login to post a reply

Server time is: 2024-11-26 03:39:47
Your offset time is: 2024-11-26 03:39:47