Panda3D
Public Attributes | List of all members
TrackerData Class Reference

Stores the kinds of data that a tracker might output. More...

Public Attributes

double dt
 Returns the amount of elapsed time over which the information (pos and orient) were computed. More...
 
const LOrientation orient
 Returns the current orientation of the tracker. More...
 
const LPoint3 pos
 Returns the current position of the tracker. More...
 
double time
 Returns the time at which the position information (pos and orient) are effective. More...
 

Detailed Description

Stores the kinds of data that a tracker might output.

Member Data Documentation

◆ dt

double dt

Returns the amount of elapsed time over which the information (pos and orient) were computed.

It is an error to call this if has_dt() does not return true. See set_dt().

◆ orient

const LOrientation orient

Returns the current orientation of the tracker.

It is legal to call this if has_orient() returns false; in this case, the result is always the identity orientation.

◆ pos

const LPoint3 pos

Returns the current position of the tracker.

It is legal to call this if has_pos() returns false; in this case, the position will always be (0, 0, 0).

◆ time

double time

Returns the time at which the position information (pos and orient) are effective.

It is an error to call this if has_time() does not return true. See set_time().