mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 09:33:36 +02:00
only check palms if active
This commit is contained in:
parent
893a3900d9
commit
0d76b370df
1 changed files with 3 additions and 0 deletions
|
@ -299,6 +299,9 @@ void Hand::updateCollisions() {
|
|||
palm.setIsCollidingWithPalm(false);
|
||||
for (int j = 0; j < getNumPalms(); j++) {
|
||||
PalmData& otherPalm = otherAvatar->getHand().getPalms()[j];
|
||||
if (!otherPalm.isActive()) {
|
||||
continue;
|
||||
}
|
||||
glm::vec3 otherPalmPosition = otherPalm.getPosition();
|
||||
if (glm::length(otherPalmPosition - myPalmPosition) < palmCollisionDistance) {
|
||||
palm.setIsCollidingWithPalm(true);
|
||||
|
|
Loading…
Reference in a new issue