![]() |
VR-Forces 5.0.1 Developer's Guide
|
Declaration of a custom object that manages a model and its properties. This object is intended to be controlled by the agent, MyObjectAgent.
Public Member Functions | |
| MyObject (makVrv::DtDe &de, makVrv::DtUniqueID id) | |
| virtual | ~MyObject () |
| void | createModel () |
| void | setRotationAngle (double rotationAngleInDegrees) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| osg::ref_ptr < osg::PositionAttitudeTransform > | myPat |
| MyObject::MyObject | ( | makVrv::DtDe & | de, |
| makVrv::DtUniqueID | id | ||
| ) |
CTOR. DtDe and DtUniqueId are not used by this class.
|
virtual |
DTOR.
| void MyObject::createModel | ( | ) |
Create an OpenSceneGraph geometry. The geometry is added to the core VRV DtOsgRenderer class to handle the rendering part.
| void MyObject::setRotationAngle | ( | double | rotationAngleInDegrees | ) |
Set the rotation angle which gets called every tick.
|
protected |
|
protected |