30 , mTime(
Ogre::Vector3(14.0f, 7.50f, 20.50f))
31 , mSunDirection(
Ogre::Vector3(0,1,0))
32 , mMoonDirection(
Ogre::Vector3(0,-1,0))
33 , mEastDirection(
Ogre::Vector2(0,1))
40 mTime.x += simDeltaTime;
117 if ((X-B) < (24-AB_)/2)
124 float ydeg = (Ogre::Math::PI/2)*
y,
125 sn = Ogre::Math::Sin(ydeg),
126 cs = Ogre::Math::Cos(ydeg);
BasicController(const bool &deleteBySkyX=true)
Constructor.
void update(const Ogre::Real &simDeltaTime)
Update controller.
Ogre::Vector3 mSunDirection
Sun direction.
Ogre::Vector2 mEastDirection
East direction (in X,Z world coords)
Ogre::Vector3 mTime
Time information: x = time in [0, 24]h range, y = sunrise hour in [0, 24]h range, z = sunset hour in ...
Ogre::Vector3 mMoonDirection
Moon direction.