mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 03:01:52 +02:00
tweak tweak
This commit is contained in:
parent
ab3ee1688d
commit
ede3cc2f3d
1 changed files with 4 additions and 2 deletions
|
@ -509,8 +509,10 @@ void Avatar::updateHandMovementAndTouching(float deltaTime) {
|
|||
if (_avatarTouch.getHoldingHands()) {
|
||||
|
||||
glm::vec3 vectorToOtherHand = _interactingOther->_joint[ AVATAR_JOINT_RIGHT_FINGERTIPS ].springyPosition - _handHoldingPosition;
|
||||
glm::vec3 vectorToMyHand = _joint[ AVATAR_JOINT_RIGHT_FINGERTIPS ].position - _handHoldingPosition;
|
||||
glm::vec3 force = (vectorToOtherHand + vectorToMyHand) * 20.0f * deltaTime;
|
||||
glm::vec3 vectorToMyHand = _joint[ AVATAR_JOINT_RIGHT_FINGERTIPS ].position - _handHoldingPosition;
|
||||
glm::vec3 force
|
||||
= vectorToOtherHand * 30.0f * deltaTime
|
||||
+ vectorToMyHand * 10.0f * deltaTime;
|
||||
|
||||
_handHoldingPosition += force;
|
||||
_joint[ AVATAR_JOINT_RIGHT_FINGERTIPS ].position = _handHoldingPosition;
|
||||
|
|
Loading…
Reference in a new issue