mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-19 08:18:05 +02:00
Cleanup and simplification per feedback
This commit is contained in:
parent
7bc2cf6fa9
commit
d5885acd75
1 changed files with 2 additions and 4 deletions
|
@ -675,10 +675,8 @@ void Avatar::updateArmIKAndConstraints(float deltaTime, AvatarJointID fingerTipJ
|
|||
elbowJoint.position = newElbowPosition;
|
||||
|
||||
// set wrist position
|
||||
glm::vec3 vv(fingerJoint.position);
|
||||
vv -= elbowJoint.position;
|
||||
glm::vec3 newWristPosition = elbowJoint.position + vv * 0.7f;
|
||||
wristJoint.position = newWristPosition;
|
||||
const float wristPosRatio = 0.7f;
|
||||
wristJoint.position = elbowJoint.position + (fingerJoint.position - elbowJoint.position) * wristPosRatio;
|
||||
}
|
||||
|
||||
glm::quat Avatar::computeRotationFromBodyToWorldUp(float proportion) const {
|
||||
|
|
Loading…
Reference in a new issue