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.

Dark GDK / absolute and relative position in 3D

Author
Message
tomtetlaw
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location:
Posted: 8th Nov 2010 08:05
What is the difference between absolute and relative position in 3D?
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 8th Nov 2010 15:04
Everything has an "absolute" position-- it's actually "relative" to the origin. When you place an item in 3D space, you tell it where to be "relative" to the origin of the universal 0,0,0. Anything "relative" to another object will have it's position centered on that object as if that "center" object is the origin for the first object.

Ok, Here's an example:

B is relative to A because it's orbiting A. A is relative to the Origin. Both A&B have absolute positions in 3D space that are relative to the Origin. B's absolute position can be expressed as B's(x,y,z)+A's(x,y,z).

Is that clear as mud?

The fastest code is the code never written.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-19 16:40:37
Your offset time is: 2024-11-19 16:40:37