mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 19:24:32 +02:00
fix
This commit is contained in:
parent
e93430d553
commit
a9ff483d3d
1 changed files with 1 additions and 2 deletions
|
@ -349,7 +349,7 @@ void Head::simulate(float deltaTime) {
|
|||
//---------------------------------------------------------------------
|
||||
// if I am holding hands with another avatar, a force is applied
|
||||
//---------------------------------------------------------------------
|
||||
if (( getHandState() == 1 )
|
||||
if (( _handState == 1 )
|
||||
|| ( _interactingOther->_handState == 1 )) {
|
||||
glm::vec3 vectorToOtherHand = _interactingOther->_handPosition - _handHolding.position;
|
||||
glm::vec3 vectorToMyHand = _bone[ AVATAR_BONE_RIGHT_HAND ].position - _handHolding.position;
|
||||
|
@ -1148,7 +1148,6 @@ void Head::updateHandMovement( float deltaTime ) {
|
|||
_bone[ AVATAR_BONE_RIGHT_HAND ].position += transformedHandMovement;
|
||||
|
||||
if (_isMine) {
|
||||
//setHandState(_mousePressed);
|
||||
_handState = _mousePressed;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue