Definition
double,double,double GetSkyPosition()
Description
This function returns sky position as three values x, y and z.
Return Value
Sky position as three values x, y and z.
Example 1
posX = 0.0 posY = 0.0 posZ = 0.0 function Init() posX, posY, posZ = GetSkyPosition() message = string.format("\nSky position is > (%.2f, %.2f, %.2f)" , posX, posY, posZ) PrintConsole(message) end function Update() end
First, GetSkyPosition function returns sky position. Then we display the position values in the console using the PrintConsole function.
GetSkyPosition