mirror of
https://github.com/lubosz/overte.git
synced 2025-04-13 14:52:36 +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
|
||||
if (desiredObjectType == MOTIONSTATE_TYPE_AVATAR && myAvatarCollisionObject && myAvatarCollisionObject == otherBody) {
|
||||
contacts.emplace_back(Physics::getSessionUUID(), bulletToGLM(penetrationPoint), bulletToGLM(otherPenetrationPoint));
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!(otherBody->getInternalType() & btCollisionObject::CO_RIGID_BODY)) {
|
||||
|
|
Loading…
Reference in a new issue