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 / all 8 points of a cube

Author
Message
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 29th Jul 2003 04:13
Ok, i am trying to make a function which returns 24 values representing the x,y and z position of all 8 of its corners. I have done it perfectly for static objects. I am using the newxvalue and newzvalue etc. to get the 3d position regardless of the rotation of the cube. Can anybody give me any guidelines on how this can be accomplised?
"We are getting aggravated"
"Yes, we are"
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 29th Jul 2003 04:52
Not the best of solutions but at least it works!

The programmer formerly known as sonic
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 29th Jul 2003 05:48
Thank you. It is a little difficult to read but i am sure i will get my head around it. This info is invaluable to me. You have my gratitude.

"We are getting aggravated"
"Yes, we are"
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 29th Jul 2003 06:00 Edited at: 29th Jul 2003 06:00
No problem. I am hoping there is an easier way using simple maths, using the newvalue commands, but they are hard to get to grips with in full 3D.

At minute the cube is moved all over the place which is a bit naff.

Would rather work out coordinates without having to move anything.

Bit late now to concentrate. Will have a play tomorrow (got 2 days off work!)

The programmer formerly known as sonic

Login to post a reply

Server time is: 2024-09-20 17:36:32
Your offset time is: 2024-09-20 17:36:32