TimeOfDay¶
Environmental object that triggers a day/night cycle in level.
- Inherit:
- SceneObject
Description¶
Environmental object that triggers a day/night cycle in level.
Example:
newTimeOfDay(tod)
{
axisTilt = "23.44";
dayLength = "120";
startTime = "0.15";
time = "0.15";
play = "0";
azimuthOverride = "572.958";
dayScale = "1";
nightScale = "1.5";
position = "598.399 550.652 196.297";
rotation = "1 0 0 0";
scale = "1 1 1";
canSave = "1";
canSaveDynamicFields = "1";
};
Methods¶
-
void
TimeOfDay::addTimeOfDayEvent(float elevation, string identifier)¶
-
void
TimeOfDay::animate(float elevation, float degreesPerSecond)¶
-
void
TimeOfDay::setDayLength(float seconds)¶
-
void
TimeOfDay::setPlay(bool enabled)¶
-
void
TimeOfDay::setTimeOfDay(float time)¶
Fields¶
-
float
TimeOfDay::axisTilt¶ The angle in degrees between global equator and tropic.
-
float
TimeOfDay::azimuthOverride¶
-
float
TimeOfDay::dayLength¶ The length of a virtual day in real world seconds.
-
float
TimeOfDay::dayScale¶ Scalar applied to time that elapses while the sun is up.
-
float
TimeOfDay::nightScale¶ Scalar applied to time that elapses while the sun is down.
-
bool
TimeOfDay::play¶ True when the TimeOfDay object is operating.
-
float
TimeOfDay::startTime¶
-
float
TimeOfDay::time¶ Current time of day.