Skip to main content
namespace ML.SDK
Class

MLCelestialData


namespace ML.SDK
{
class MLCelestialData
}

Inherits from MonoBehaviour ML.SDK.ICanSetGeoCoordinates

Summary

MLCelestialData component

Properties

PropertyDesciption
LunarAltitudeThe angle of the moon relative to the Earth�s horizon in degrees.
LunarAzimuthThe moon�s horizontal angle with respect to north in degrees.
LunarIlluminationFractionThe illuminated fraction of the moon�s disk. A value between 0 and 1.
LunarIlluminationAngleAngle of the moon's bright limb.
LunarPhaseThe current phase of the moon is indicated by a value between 0 and 1. 0 or 1 indicates the new moon, 0.25 indicates the quarter moon, 0.5 half-moon.
SunAltitudeThe angle of the sun relative to the Earth's horizon in degrees.
SunAzimuthThe sun�s horizontal angle with respect to north. Clockwise positive. For example, sun�s azimuth angle is 90 degrees during full eastern sunrise, until midway.
SunMovementEnabledIndicates if the movement of directional light (sun) by the component enabled.

Methods

MethodDescription
SetCoordinates(double, double)Set global coordinate of the desired location.
ApplyTimeOffset(double)Applies a time offset to current time in seconds. You can use this function to change time, speed up or slow down time and solar/lunar calculations. (no relation to system time, frame rate or any other time parameters)
EnableSunMovement(bool)Enables or disables the movement of the directional light (sun) by the component.
GetLocalTime()Get current machine independent local time based on specified time zone
GetUTCTime()Current local machine independent UTC time.