![]() |
RigsofRods
2023.09
Soft-body Physics Simulation
|
Controller base class. More...
#include <Controller.h>
Inheritance diagram for SkyX::Controller:Public Member Functions | |
| Controller (const bool &deleteBySkyX) | |
| Constructor. More... | |
| virtual | ~Controller () |
| Destructor. More... | |
| virtual void | update (const Ogre::Real &simDeltaTime) |
| Update controller. More... | |
| virtual Ogre::Vector3 | getSunDirection ()=0 |
| Get sun direction. More... | |
| virtual Ogre::Vector3 | getMoonDirection ()=0 |
| Get moon direction. More... | |
| virtual Ogre::Real | getMoonPhase ()=0 |
| Get moon phase. More... | |
| const bool & | getDeleteBySkyX () const |
| Must the controller be destroyed by SkyX? More... | |
Private Attributes | |
| bool | mDeleteBySkyX |
| Must the controller be destroyed by SkyX? More... | |
Controller base class.
Definition at line 33 of file Controller.h.
|
inline |
Constructor.
| deleteBySkyX | true to automatically destroy the controller by SkyX, false otherwise |
Definition at line 39 of file Controller.h.
|
inlinevirtual |
Destructor.
Definition at line 46 of file Controller.h.
|
inline |
Must the controller be destroyed by SkyX?
Definition at line 72 of file Controller.h.
|
pure virtual |
Get moon direction.
Implemented in SkyX::BasicController.
|
pure virtual |
Get moon phase.
Implemented in SkyX::BasicController.
|
pure virtual |
Get sun direction.
Implemented in SkyX::BasicController.
|
inlinevirtual |
Update controller.
| simDeltaTime | Simulation delta time (It's not the time since last frame, it's the delta simulation time, one time the time since last frame has been multiplied by the time multiplier) |
Reimplemented in SkyX::BasicController.
Definition at line 52 of file Controller.h.
|
private |
Must the controller be destroyed by SkyX?
Definition at line 79 of file Controller.h.
1.8.17