mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 03:38:28 +02:00
Derp; I don't want the length of the scale, I want the average of the
components.
This commit is contained in:
parent
2e9625ebd5
commit
afd3f6937c
1 changed files with 1 additions and 1 deletions
|
@ -623,7 +623,7 @@ bool Model::setJointPosition(int jointIndex, const glm::vec3& position) {
|
|||
glm::vec3 gravity = _rotation * IDENTITY_UP * -0.1f;
|
||||
|
||||
// over one or more iterations, apply the length constraints and update the rotations accordingly
|
||||
float uniformScale = glm::length(_scale);
|
||||
float uniformScale = (_scale.x + _scale.y + _scale.z) / 3.0f;
|
||||
const int ITERATION_COUNT = 1;
|
||||
for (int i = 0; i < ITERATION_COUNT; i++) {
|
||||
for (int j = 1; j < freeLineage.size(); j++) {
|
||||
|
|
Loading…
Reference in a new issue