mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-06 22:43:09 +02:00
remove the last of Leap specific cruft
This commit is contained in:
parent
efb3edf400
commit
cea472b730
3 changed files with 2 additions and 6 deletions
|
@ -33,7 +33,7 @@ void SkeletonModel::simulate(float deltaTime, bool fullUpdate) {
|
||||||
return; // only simulate for own avatar
|
return; // only simulate for own avatar
|
||||||
}
|
}
|
||||||
|
|
||||||
// find the left and rightmost active Leap palms
|
// find the left and rightmost active palms
|
||||||
int leftPalmIndex, rightPalmIndex;
|
int leftPalmIndex, rightPalmIndex;
|
||||||
Hand* hand = _owningAvatar->getHand();
|
Hand* hand = _owningAvatar->getHand();
|
||||||
hand->getLeftRightPalmIndices(leftPalmIndex, rightPalmIndex);
|
hand->getLeftRightPalmIndices(leftPalmIndex, rightPalmIndex);
|
||||||
|
@ -42,7 +42,7 @@ void SkeletonModel::simulate(float deltaTime, bool fullUpdate) {
|
||||||
|
|
||||||
const FBXGeometry& geometry = _geometry->getFBXGeometry();
|
const FBXGeometry& geometry = _geometry->getFBXGeometry();
|
||||||
if (leftPalmIndex == -1) {
|
if (leftPalmIndex == -1) {
|
||||||
// no Leap data; set hands from mouse
|
// palms are not yet set, use mouse
|
||||||
if (_owningAvatar->getHandState() == HAND_STATE_NULL) {
|
if (_owningAvatar->getHandState() == HAND_STATE_NULL) {
|
||||||
restoreRightHandPosition(HAND_RESTORATION_RATE);
|
restoreRightHandPosition(HAND_RESTORATION_RATE);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -71,7 +71,6 @@ _rotationalVelocity(0.f),
|
||||||
_totalPenetration(0.f),
|
_totalPenetration(0.f),
|
||||||
_controllerButtons(0),
|
_controllerButtons(0),
|
||||||
_isActive(false),
|
_isActive(false),
|
||||||
_leapID(LEAPID_INVALID),
|
|
||||||
_sixenseID(SIXENSEID_INVALID),
|
_sixenseID(SIXENSEID_INVALID),
|
||||||
_numFramesWithoutData(0),
|
_numFramesWithoutData(0),
|
||||||
_owningHandData(owningHandData),
|
_owningHandData(owningHandData),
|
||||||
|
|
|
@ -91,11 +91,9 @@ public:
|
||||||
|
|
||||||
const glm::vec3& getRawPosition() const { return _rawPosition; }
|
const glm::vec3& getRawPosition() const { return _rawPosition; }
|
||||||
bool isActive() const { return _isActive; }
|
bool isActive() const { return _isActive; }
|
||||||
int getLeapID() const { return _leapID; }
|
|
||||||
int getSixenseID() const { return _sixenseID; }
|
int getSixenseID() const { return _sixenseID; }
|
||||||
|
|
||||||
void setActive(bool active) { _isActive = active; }
|
void setActive(bool active) { _isActive = active; }
|
||||||
void setLeapID(int id) { _leapID = id; }
|
|
||||||
void setSixenseID(int id) { _sixenseID = id; }
|
void setSixenseID(int id) { _sixenseID = id; }
|
||||||
|
|
||||||
void setRawRotation(const glm::quat rawRotation) { _rawRotation = rawRotation; };
|
void setRawRotation(const glm::quat rawRotation) { _rawRotation = rawRotation; };
|
||||||
|
@ -166,7 +164,6 @@ private:
|
||||||
float _joystickX, _joystickY;
|
float _joystickX, _joystickY;
|
||||||
|
|
||||||
bool _isActive; // This has current valid data
|
bool _isActive; // This has current valid data
|
||||||
int _leapID; // the Leap's serial id for this tracked object
|
|
||||||
int _sixenseID; // Sixense controller ID for this palm
|
int _sixenseID; // Sixense controller ID for this palm
|
||||||
int _numFramesWithoutData; // after too many frames without data, this tracked object assumed lost.
|
int _numFramesWithoutData; // after too many frames without data, this tracked object assumed lost.
|
||||||
HandData* _owningHandData;
|
HandData* _owningHandData;
|
||||||
|
|
Loading…
Reference in a new issue