Public Member Functions |
| | DtEntity3dFacade (DtAgentManagerInterface &sceneInterface, DtElementID id, bool distribute=false) |
| | CTOR Creates a 3d Facade for the 3D model set.
|
| | DtEntity3dFacade (DtAgentManagerInterface &sceneInterface, DtElementID id, int modelset, bool distribute=false) |
| | CTOR Creates a 3d Facade for the any model set.
|
| virtual | ~DtEntity3dFacade () |
| | DTOR.
|
|
These functions get parameters of the entity facade.
representing the entity.
|
| virtual void | setVisible (bool visible) |
| | set the entity's model hidden or visible
|
| virtual bool | visible () const |
| | Get the visibility of the entity.
|
| virtual DtElementID | elementId () const |
| | Get the element id for the entity facade.
|
| virtual int | modelSet () const |
| | Returns the model set being visualized.
|
| DtSceneObjectAgent & | sceneObjectAgent () |
| | Returns the scene object agent for this facade.
|
|
These functions control the spacial parameters of the entity.
|
| virtual void | setPosition (const DtVector &position) |
| | Set the position of the entity.The change in position will be applied during the DtDe's agent update phase (which occurs during the DtDe tick after the Driver update phase).
|
| virtual DtVector | position () const |
| | Gets the current position of the entity.
|
| virtual void | setVelocity (const DtVector &velocity) |
| | Set the velocity of the entity.
|
| virtual DtVector | velocity () const |
| | Gets the current velocity of the entity.
|
| virtual void | setAcceleration (const DtVector &acceleration) |
| | Set the acceleration of the entity.
|
| virtual DtVector | acceleration () const |
| | Gets the current acceleration of the entity.
|
| virtual void | setOrientation (const DtTaitBryan &orientation) |
| | Set the orientation of the entity.
|
| virtual DtTaitBryan | orientation () const |
| | Get the current orientation of the entity.
|
| virtual void | setAngularVelocity (const DtVector &angularVelocity) |
| | Set the angular velocity of the entity.
|
| virtual DtVector | angularVelocity () const |
| | Set the orientation of the entity.
|
|
These functions control the advanced spacial behavior including dead-reckoning, smoothing and ground clamping.
|
| virtual void | setDeadReckoningEnabled (bool position, bool velocity, bool orientation) |
| | Set dead reckoning algorithm, whether to dead reckon, position, velocity, and orientation.
|
| virtual void | setSmoothingEnabled (bool enabled) |
| | Set whether the Entity smooths.
|
| virtual void | setSmoothingPeriod (float period) |
| | Set the period for entity smoothing.
|
| virtual void | setGroundClampingMode (DtGroundClampingUpdater::GroundClampingMode mode) |
| | Set ground clamping mode using bit flags defined in DtGroundClampingUpdater::GroundClampingMode.
|
|
These functions control the appearance of an articulated model representing the entity.
|
| virtual void | setArticulatedModelDefinition (const std::string &modelName) |
| | Set the entity's model definition names.
|
| virtual void | setModelScalingEnabled (bool enabled) |
| | Enable/Disable model scaling.
|
| virtual void | setPartOrientation (int partNumber, const DtTaitBryan &orientation, const DtVector &angularVelocity) |
| | Set an articulated part orientation.
|
| virtual void | setPartTranslation (int partNumber, const DtVector &translation, const DtVector &velocity) |
| | Set an articulated part translation.
|
| virtual void | setPartVisibility (int partNumber, bool onOff) |
| | Sets the visibility of an articulated part.
|
The DtEntity3dFacade is a facade around agents that make up an entity in the 3D model set.