|
VR-Engage
2.2
|
DtKinetic encapsulates all kinetic information about a simulation entity, including its position, orientation, velocities, and acceleration. This data is used for various simulation purposes such as:
The class provides comparison operators to detect when kinetic state changes.
#include <kinetic.h>
Public Member Functions | |
| DtKinetic () | |
| virtual | ~DtKinetic () |
| bool | operator== (const DtKinetic &other) const |
| bool | operator!= (const DtKinetic &other) const |
Public Attributes | |
| int | myId |
| int | myParentId |
| DtVector | myPosition |
| DtVector32 | myVelocity |
| DtVector32 | myAcceleration |
| DtTaitBryan | myOrientation |
| DtVector32 | myRotationVelocity |
| makVre::DtKinetic::DtKinetic | ( | ) |
Default constructor.
Creates a new kinetic state with default values (zero for all vectors).
Referenced by operator!=(), and operator==().
|
virtual |
Virtual destructor.
Ensures proper cleanup of derived kinetic classes if any.
| bool makVre::DtKinetic::operator== | ( | const DtKinetic & | other | ) | const |
Equality comparison operator.
| other | The other kinetic state to compare with |
Compares this kinetic state with another and returns true only if all properties (position, velocity, etc.) are equal. This is used to detect when an entity's state has changed.
References DtKinetic().
| bool makVre::DtKinetic::operator!= | ( | const DtKinetic & | other | ) | const |
Inequality comparison operator.
| other | The other kinetic state to compare with |
Compares this kinetic state with another and returns true if any property differs. This is the logical inverse of the equality operator.
References DtKinetic().
| int makVre::DtKinetic::myId |
Unique identifier for this entity.
Integer ID that uniquely identifies this entity within the simulation.
| int makVre::DtKinetic::myParentId |
Identifier of the parent entity.
If this entity is attached to a parent (e.g., a component of a larger entity), this field contains the parent's ID. Zero or negative values indicate no parent.
| DtVector makVre::DtKinetic::myPosition |
Current position vector.
The entity's position in 3D space, typically expressed in geocentric coordinates.
| DtVector32 makVre::DtKinetic::myVelocity |
Current velocity vector.
The entity's linear velocity in meters per second.
| DtVector32 makVre::DtKinetic::myAcceleration |
Current acceleration vector.
The entity's linear acceleration in meters per second squared.
| DtTaitBryan makVre::DtKinetic::myOrientation |
Current orientation.
The entity's orientation in 3D space, represented as Tait-Bryan angles (roll, pitch, yaw).
| DtVector32 makVre::DtKinetic::myRotationVelocity |
Current rotational velocity.
The entity's angular velocity in radians per second around each axis.