mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 07:53:08 +02:00
Don't repeat check for non-zero collision groups
This commit is contained in:
parent
08b525ef91
commit
b875144e2d
1 changed files with 11 additions and 13 deletions
|
@ -168,7 +168,6 @@ void MyAvatar::simulate(float deltaTime) {
|
|||
radius = myCamera->getAspectRatio() * (myCamera->getNearClip() / cos(myCamera->getFieldOfView() / 2.0f));
|
||||
radius *= COLLISION_RADIUS_SCALAR;
|
||||
}
|
||||
if (_collisionGroups) {
|
||||
updateShapePositions();
|
||||
if (_collisionGroups & COLLISION_GROUP_ENVIRONMENT) {
|
||||
updateCollisionWithEnvironment(deltaTime, radius);
|
||||
|
@ -182,7 +181,6 @@ void MyAvatar::simulate(float deltaTime) {
|
|||
updateCollisionWithAvatars(deltaTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// consider updating our billboard
|
||||
maybeUpdateBillboard();
|
||||
|
|
Loading…
Reference in a new issue