TrackerData

from panda3d.core import TrackerData
class TrackerData

Bases:

Bases: MemoryBase

Stores the kinds of data that a tracker might output.

Inheritance diagram

Inheritance diagram of TrackerData

property dt float
Getter

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

Setter

Indicates the amount of elapsed time over which which the information (pos and orient) were computed. This only makes sense if the information represents velocity or acceleration, rather than position. This is an elapsed time in seconds.

property orient LOrientation
Getter

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.

Setter

Indicates the current orientation of the tracker sensor in space. The coordinate system of this orientation is defined by the tracker, but should be the same coordinate system as that reflected by set_pos().

property pos LPoint3
Getter

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

Setter

Indicates the current position of the tracker sensor in space. The coordinate system of this position is defined by the tracker.

property time float
Getter

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

Setter

Indicates the time at which the position information (pos and orient) are effective. This is a time elapsed in seconds since some undefined epoch; it may or may not correspond to the clock time indicated in the global ClockObject.