Sets the position of the node in the 3D world.
setPosition(pos);
Parameter |
Description |
pos |
An SGPosition object that represents the new position of the node. |
Return Value
If the method succeeds, the return value is true. If the method fails, the return value is false. SGWorld.lastError contains the failure reason.
Remarks
When setting the position of objects that have visual representation on the terrain (e.g., polygons and labels), they immediately reflect their new position on the terrain. When setting the position of a group node, which has no physical appearance on the terrain, no immediate change is seen. However, the new group position will be used in some cases. For example, when flying to that group (see SGWorld.navigate.flyTo method).