AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
AirControl.Sun Class Reference

Function to change sun location and create Day and Night effects. More...

Inheritance diagram for AirControl.Sun:
Collaboration diagram for AirControl.Sun:

Public Member Functions

void SetTime (int hour, int minutes)
 set dun location as per Hour and Minute More...
 
void SetLocation (float longitude, float latitude)
 Set sun location as per the Longitude and latitude More...
 
void SetUpdateSteps (int i)
 
void SetTimeSpeed (float speed)
 

Public Attributes

GameObject sliderAndText
 
Toggle sunLocationControl
 
Slider longitudeSlider
 
Slider latitudeSlider
 
Slider sunHourSlider
 
Slider sunMinuteSlider
 

Detailed Description

Function to change sun location and create Day and Night effects.

Definition at line 16 of file Sun.cs.

Member Function Documentation

◆ SetLocation()

void AirControl.Sun.SetLocation ( float  longitude,
float  latitude 
)
inline

Set sun location as per the Longitude and latitude

Parameters
longitude
latitude

Definition at line 67 of file Sun.cs.

67  {
68  this.longitude = longitude;
69  this.latitude = latitude;
70  }

◆ SetTime()

void AirControl.Sun.SetTime ( int  hour,
int  minutes 
)
inline

set dun location as per Hour and Minute

Parameters
hourHour, limit 0-24
minutesMinutes, limit 0-60

Definition at line 57 of file Sun.cs.

57  {
58  this.hour = hour;
59  this.minutes = minutes;
60  OnValidate();
61  }

The documentation for this class was generated from the following file: