What is the difference between absolute and relative position in 3D?

I believe that absolute position is the actual position of an object, whereas relative would mean the position relative to another object.

Ex:

Absolute position: monster.setPosition(100,100); Relative position: hero.setPosition(monster.getX()+100,monster.getY()+100) So in the absolute position, the monster in place in an absolute position at (100,100), while the hero is placed relative to the monster, that is the hero is placed 100 plus the monster x position and 100 units plus the monster y position. So that whenever the monster moves, the hero position will always be 100 + monster.x() and 100+monster.y(); Get it?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.