mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 04:57:58 +02:00
Return early when colliding MyAvatar is found in AllContactsCallback
This commit is contained in:
parent
c5e9f02372
commit
ad36e23c34
1 changed files with 1 additions and 0 deletions
|
@ -888,6 +888,7 @@ struct AllContactsCallback : public btCollisionWorld::ContactResultCallback {
|
||||||
// TODO: Give MyAvatar a motion state so we don't have to do this
|
// TODO: Give MyAvatar a motion state so we don't have to do this
|
||||||
if (desiredObjectType == MOTIONSTATE_TYPE_AVATAR && myAvatarCollisionObject && myAvatarCollisionObject == otherBody) {
|
if (desiredObjectType == MOTIONSTATE_TYPE_AVATAR && myAvatarCollisionObject && myAvatarCollisionObject == otherBody) {
|
||||||
contacts.emplace_back(Physics::getSessionUUID(), bulletToGLM(penetrationPoint), bulletToGLM(otherPenetrationPoint));
|
contacts.emplace_back(Physics::getSessionUUID(), bulletToGLM(penetrationPoint), bulletToGLM(otherPenetrationPoint));
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(otherBody->getInternalType() & btCollisionObject::CO_RIGID_BODY)) {
|
if (!(otherBody->getInternalType() & btCollisionObject::CO_RIGID_BODY)) {
|
||||||
|
|
Loading…
Reference in a new issue