|
VR-Engage
2.2
|
Used for parts that rely on the Vortex dynamics extension, such as wheels and tracks.
#include <vortexPart.h>
Public Member Functions | |
| DtVortexDynamicsPart (Vx::VxWeakPtr< VxSim::VxExtension > dynamicsExt, makVre::DtVortexSimArtPartDescriptor *desc, DtVortexBasePart *parent) | |
| virtual | ~DtVortexDynamicsPart () override |
| virtual bool | init () override |
| virtual void | update () override |
| virtual Vx::VxTransform | transform () const override |
| virtual Vx::VxTransform | worldTransform () const override |
| double | wheelRadius () |
| virtual void | resetInitialPartPositions () override |
| virtual void | reset () override |
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 | |
| virtual bool | initializeCarWheel () |
| virtual bool | initializeTrackSprocket () |
| virtual bool | initializeTrackIdler () |
| virtual bool | initializeTrackWheel () |
Protected Attributes | |
| double | myDynamicWheelRadius |
| Vx::VxTransform | myDOFTransform |
| Vx::VxWeakPtr< VxSim::VxExtension > | myDynamicsExt |
| VxData::FieldBase * | myDynamicsTransform |
| VxData::FieldBase * | myDynamicsContactMaterial |
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 } |
| DtVortexDynamicsPart::DtVortexDynamicsPart | ( | Vx::VxWeakPtr< VxSim::VxExtension > | dynamicsExt, |
| makVre::DtVortexSimArtPartDescriptor * | desc, | ||
| DtVortexBasePart * | parent ) |
Constructor.
| dynamicsExt | The Vortex dynamics extension |
| 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 |
| double DtVortexDynamicsPart::wheelRadius | ( | ) |
Gets the wheel radius.
|
overridevirtual |
Resets the initial part positions.
Reimplemented from DtVortexBasePart.
|
overridevirtual |
Resets the part to its initial state.
Reimplemented from DtVortexBasePart.
|
protectedvirtual |
Initializes a car wheel.
|
protectedvirtual |
Initializes a track sprocket.
|
protectedvirtual |
Initializes a track idler.
|
protectedvirtual |
Initializes a track wheel.
|
protected |
Wheel radius for dynamics calculations.
|
protected |
Degree of freedom transform.
|
protected |
The dynamics extension.
|
protected |
The dynamics transform field.
|
protected |
The dynamics contact material field.