TimeOfDay
Environmental object that triggers a day/night cycle in level.
TimeOfDay
float
The angle in degrees between global equator and tropic.
float
The length of a virtual day in real world seconds.
float
float
Current time of day.
float
float
Scalar applied to time that elapses while the sun is up.
float
Scalar applied to time that elapses while the sun is down.
Public Static Attributes
bool
Disables rendering of all instances of this type.
bool
Disables selection of all instances of this type.
Public Functions
void
addTimeOfDayEvent(float elevation, string identifier)
void
animate(float elevation, float degreesPerSecond)
void
setDayLength(float seconds)
void
setPlay(bool enabled)
void
setTimeOfDay(float time)
Detailed Description
Environmental object that triggers a day/night cycle in level.
note:TimeOfDay only works in Advanced Lighting with a Sub object or ScatterSky
new TimeOfDay(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"; };
TimeOfDay
float axisTilt
The angle in degrees between global equator and tropic.
float dayLength
The length of a virtual day in real world seconds.
float startTime
float Time
Current time of day.
bool play
True when the TimeOfDay object is operating.
float azimuthOverride
float dayScale
Scalar applied to time that elapses while the sun is up.
float nightScale
Scalar applied to time that elapses while the sun is down.
Public Static Attributes
bool isRenderable
Disables rendering of all instances of this type.
bool isSelectable
Disables selection of all instances of this type.
Public Functions
addTimeOfDayEvent(float elevation, string identifier)
animate(float elevation, float degreesPerSecond)
setDayLength(float seconds)
setPlay(bool enabled)
setTimeOfDay(float time)