mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
check for bad deltaTime during avatar-avatar collisions
This commit is contained in:
parent
66b6328687
commit
f7862eb600
1 changed files with 1 additions and 1 deletions
|
@ -910,7 +910,7 @@ void MyAvatar::updateCollisionWithAvatars(float deltaTime) {
|
|||
updateShapePositions();
|
||||
float myBoundingRadius = getBoundingRadius();
|
||||
|
||||
const float BODY_COLLISION_RESOLUTION_FACTOR = deltaTime / BODY_COLLISION_RESOLUTION_TIMESCALE;
|
||||
const float BODY_COLLISION_RESOLUTION_FACTOR = glm::max(1.0f, deltaTime / BODY_COLLISION_RESOLUTION_TIMESCALE);
|
||||
|
||||
foreach (const AvatarSharedPointer& avatarPointer, avatars) {
|
||||
Avatar* avatar = static_cast<Avatar*>(avatarPointer.data());
|
||||
|
|
Loading…
Reference in a new issue