mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 12:04:03 +02:00
spacing
This commit is contained in:
parent
2bf9b3e6fd
commit
5db7b74c1e
1 changed files with 1 additions and 1 deletions
|
@ -1252,7 +1252,7 @@ void Avatar::updateBodySprings(float deltaTime) {
|
||||||
// Check for a large repositioning, and re-initialize body springs if this has happened
|
// Check for a large repositioning, and re-initialize body springs if this has happened
|
||||||
const float BEYOND_BODY_SPRING_RANGE = 2.f;
|
const float BEYOND_BODY_SPRING_RANGE = 2.f;
|
||||||
if (glm::length(_position - _joint[AVATAR_JOINT_PELVIS].springyPosition) > BEYOND_BODY_SPRING_RANGE) {
|
if (glm::length(_position - _joint[AVATAR_JOINT_PELVIS].springyPosition) > BEYOND_BODY_SPRING_RANGE) {
|
||||||
initializeBodySprings();
|
initializeBodySprings();
|
||||||
}
|
}
|
||||||
for (int b = 0; b < NUM_AVATAR_JOINTS; b++) {
|
for (int b = 0; b < NUM_AVATAR_JOINTS; b++) {
|
||||||
glm::vec3 springVector(_joint[b].springyPosition);
|
glm::vec3 springVector(_joint[b].springyPosition);
|
||||||
|
|
Loading…
Reference in a new issue