This method returns an indication of whether a specified terrain coordinate falls in the 3D Window. If it does, the screen coordinates of a specified pixel are returned.
pixelFromWorld(obj);
Parameter |
Description |
obj |
An object on the terrain or a coordinate. Can be one of the following: SGCoord3D, SGCoord2D, SGPosition, SGNode |
Return Value
An SGCoord2D object that represents a pixel in the window. If the method fails, the return value is null. SGWorld.lastError contains the failure reason.
Remarks
If the obj parameter is an SGNode object, it is assumed that the terrain object pivot was given.