mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
made Leap unit-conversion method public
This commit is contained in:
parent
86faa33f83
commit
c61966ebcd
2 changed files with 5 additions and 1 deletions
|
@ -50,6 +50,9 @@ public:
|
|||
// getters
|
||||
const glm::vec3& getLeapBallPosition (int ball) const { return _leapBalls[ball].position;}
|
||||
|
||||
// position conversion
|
||||
glm::vec3 leapPositionToWorldPosition(const glm::vec3& leapPosition);
|
||||
|
||||
private:
|
||||
// disallow copies of the Hand, copy of owning Avatar is disallowed too
|
||||
Hand(const Hand&);
|
||||
|
@ -66,7 +69,6 @@ private:
|
|||
// private methods
|
||||
void renderHandSpheres();
|
||||
void calculateGeometry();
|
||||
glm::vec3 leapPositionToWorldPosition(const glm::vec3& leapPosition);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -20,6 +20,8 @@ class HandData {
|
|||
public:
|
||||
HandData(AvatarData* owningAvatar);
|
||||
|
||||
// These methods return the positions in Leap-relative space.
|
||||
// To vonvert to world coordinates, use Hand::leapPositionToWorldPosition.
|
||||
const std::vector<glm::vec3>& getFingerTips() const { return _fingerTips; }
|
||||
const std::vector<glm::vec3>& getFingerRoots() const { return _fingerRoots; }
|
||||
const std::vector<glm::vec3>& getHandPositions() const { return _handPositions; }
|
||||
|
|
Loading…
Reference in a new issue