diff --git a/panda/src/device/trackerNode.I b/panda/src/device/trackerNode.I index 06d1f87c24..dfcae29522 100644 --- a/panda/src/device/trackerNode.I +++ b/panda/src/device/trackerNode.I @@ -50,6 +50,26 @@ get_orient() const { return _data.get_orient(); } +//////////////////////////////////////////////////////////////////// +// Function: TrackerNode::get_time +// Access: Public +// Description: Returns the time of the tracker's last update. +//////////////////////////////////////////////////////////////////// +INLINE double TrackerNode:: +get_time() const { + return _data.get_time(); +} + +//////////////////////////////////////////////////////////////////// +// Function: TrackerNode::has_time +// Access: Public +// Description: True if this data comes with timestamps. +//////////////////////////////////////////////////////////////////// +INLINE bool TrackerNode:: +has_time() const { + return _data.has_time(); +} + //////////////////////////////////////////////////////////////////// // Function: TrackerNode::get_transform // Access: Public diff --git a/panda/src/device/trackerNode.h b/panda/src/device/trackerNode.h index 4fe08d9fbc..8904ccb059 100644 --- a/panda/src/device/trackerNode.h +++ b/panda/src/device/trackerNode.h @@ -47,6 +47,8 @@ PUBLISHED: INLINE const LPoint3f &get_pos() const; INLINE const LOrientationf &get_orient() const; INLINE const LMatrix4f &get_transform() const; + INLINE double get_time() const; + INLINE bool has_time() const; INLINE void set_tracker_coordinate_system(CoordinateSystem cs); INLINE CoordinateSystem get_tracker_coordinate_system() const;