|
VR-Engage
2.2
|
Used primarily for the chassis, turret, and main gun parts. Wraps a Vortex physics part and provides access to its properties.
#include <vortexPart.h>
Public Member Functions | |
| DtVortexPart (Vx::VxPart *part, makVre::DtVortexSimArtPartDescriptor *desc, DtVortexBasePart *parent) | |
| virtual | ~DtVortexPart () override |
| virtual bool | init () override |
| virtual void | update () override |
| virtual Vx::VxTransform | transform () const override |
| virtual Vx::VxTransform | worldTransform () const override |
| virtual void | resetInitialPartPositions () override |
| virtual void | reset () override |
| virtual Vx::VxPart * | getPart () |
Public Member Functions inherited from DtVortexBasePart | |
| DtVortexBasePart (makVre::DtVortexSimArtPartDescriptor *desc, DtVortexBasePart *parent) | |
| virtual | ~DtVortexBasePart () |
| virtual const std::vector< int > & | paramIds () const |
| virtual DtVortexBasePart & | parent () const |
| virtual bool | hasMotion (DtPartMotion motion) const |
| virtual int | partId () const |
| virtual int | parentId () const |
| virtual DtVector | position () const |
| virtual DtVector | velocity () const |
| virtual DtVector | acceleration () const |
| virtual DtTaitBryan | orientation () const |
| virtual DtVector | angularVelocity () const |
| virtual const std::string & | name () const |
Protected Member Functions | |
| DtVector | calculatePosition () |
| DtTaitBryan | calculateOrientation () |
| DtVector | calculateLinearVelocity () |
| DtVector | calculateAngularVelocity () |
| DtVector | calculateAccleration () |
Protected Attributes | |
| Vx::VxPart * | myPart |
Protected Attributes inherited from DtVortexBasePart | |
| std::string | myName |
| DtVortexBasePart * | myParent |
| makVre::DtVortexSimArtPartDescriptor * | myDescriptor |
| int | myParentId |
| int | myPartId |
| int | myMotion |
| std::vector< int > | myParamterIds |
| DtVector | myPosition |
| DtVector | myVelocity |
| DtVector | myAcceleration |
| DtTaitBryan | myOrientation |
| DtVector | myAngularVelocity |
Additional Inherited Members | |
Public Types inherited from DtVortexBasePart | |
| enum | DtPartMotion { X = 0x01 , Y = 0x02 , Z = 0x04 , TRANSLATION = X | Y | Z , AZIMUTH = 0x10 , ELEVATION = 0x20 , ROTATION = 0x40 , ORIENTATION = AZIMUTH | ELEVATION | ROTATION } |
| DtVortexPart::DtVortexPart | ( | Vx::VxPart * | part, |
| makVre::DtVortexSimArtPartDescriptor * | desc, | ||
| DtVortexBasePart * | parent ) |
Constructor.
| part | Pointer to the Vortex part |
| desc | Part descriptor |
| parent | Pointer to the parent part |
References DtVortexBasePart::DtVortexBasePart(), and DtVortexBasePart::parent().
|
overridevirtual |
Destructor.
|
overridevirtual |
Initializes the part.
Implements DtVortexBasePart.
|
overridevirtual |
Updates the part state from Vortex.
Implements DtVortexBasePart.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Resets the initial part positions.
Reimplemented from DtVortexBasePart.
|
overridevirtual |
Resets the part to its initial state.
Reimplemented from DtVortexBasePart.
|
virtual |
Gets the underlying Vortex part.
|
protected |
Calculates the current position.
|
protected |
Calculates the current orientation.
|
protected |
Calculates the current linear velocity.
|
protected |
Calculates the current angular velocity.
|
protected |
Calculates the current acceleration.
|
protected |
The Vortex physics part.