VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtKinetic Class Reference

Detailed Description

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:

  • Dead reckoning to estimate entity positions between network updates
  • Physics calculations for collision detection and response
  • Visual representation for accurate entity placement and movement

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
 

Constructor & Destructor Documentation

◆ DtKinetic()

makVre::DtKinetic::DtKinetic ( )

Default constructor.

Creates a new kinetic state with default values (zero for all vectors).

Referenced by operator!=(), and operator==().

◆ ~DtKinetic()

virtual makVre::DtKinetic::~DtKinetic ( )
virtual

Virtual destructor.

Ensures proper cleanup of derived kinetic classes if any.

Member Function Documentation

◆ operator==()

bool makVre::DtKinetic::operator== ( const DtKinetic & other) const

Equality comparison operator.

Parameters
otherThe other kinetic state to compare with
Returns
True if all kinetic properties are equal, false otherwise

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().

◆ operator!=()

bool makVre::DtKinetic::operator!= ( const DtKinetic & other) const

Inequality comparison operator.

Parameters
otherThe other kinetic state to compare with
Returns
True if any kinetic property differs, false if all are equal

Compares this kinetic state with another and returns true if any property differs. This is the logical inverse of the equality operator.

References DtKinetic().

Member Data Documentation

◆ myId

int makVre::DtKinetic::myId

Unique identifier for this entity.

Integer ID that uniquely identifies this entity within the simulation.

◆ myParentId

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.

◆ myPosition

DtVector makVre::DtKinetic::myPosition

Current position vector.

The entity's position in 3D space, typically expressed in geocentric coordinates.

◆ myVelocity

DtVector32 makVre::DtKinetic::myVelocity

Current velocity vector.

The entity's linear velocity in meters per second.

◆ myAcceleration

DtVector32 makVre::DtKinetic::myAcceleration

Current acceleration vector.

The entity's linear acceleration in meters per second squared.

◆ myOrientation

DtTaitBryan makVre::DtKinetic::myOrientation

Current orientation.

The entity's orientation in 3D space, represented as Tait-Bryan angles (roll, pitch, yaw).

◆ myRotationVelocity

DtVector32 makVre::DtKinetic::myRotationVelocity

Current rotational velocity.

The entity's angular velocity in radians per second around each axis.


The documentation for this class was generated from the following file: