SteamVRTrackPoint.hpp 602 B

12345678910111213141516171819
  1. #pragma once
  2. // Include modules
  3. #include "defaults.hpp"
  4. #include "TrackPoint.hpp"
  5. #include "TrackSystemSettingsStructs.hpp"
  6. class SteamVRTrackPoint: public TrackPoint {
  7. public:
  8. SteamVRTrackPoint(const osg::Vec3 point, const osg::Vec3 normal, const osg::Vec3 normalModifier, const float normalRotation, const bool compensation, const double length = STEAMVR_DEFAULT_LENGTH);
  9. double getLength();
  10. SteamVRTrackSettings getSteamVRTrackSettings();
  11. void updateSteamVRTrackSettings(SteamVRTrackSettings settings);
  12. float getNormalCompensation();
  13. private:
  14. void updateShift();
  15. double _length;
  16. };