mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 10:14:52 +02:00
sync
This commit is contained in:
parent
fea8d84618
commit
6b53fefebe
1 changed files with 4 additions and 0 deletions
|
@ -391,6 +391,7 @@ void PhysicsEngine::doOwnershipInfection(const btCollisionObject* objectA, const
|
|||
(a && a->getShouldClaimSimulationOwnership()) ||
|
||||
(objectA == characterCollisionObject)) {
|
||||
if (bIsDynamic) {
|
||||
qDebug() << "setShouldClaimSimulationOwnership(true) in doOwnershipInfection";
|
||||
b->setShouldClaimSimulationOwnership(true);
|
||||
}
|
||||
}
|
||||
|
@ -398,6 +399,7 @@ void PhysicsEngine::doOwnershipInfection(const btCollisionObject* objectA, const
|
|||
(b && b->getShouldClaimSimulationOwnership()) ||
|
||||
(objectB == characterCollisionObject)) {
|
||||
if (aIsDynamic) {
|
||||
qDebug() << "setShouldClaimSimulationOwnership(true) in doOwnershipInfection";
|
||||
a->setShouldClaimSimulationOwnership(true);
|
||||
}
|
||||
}
|
||||
|
@ -576,12 +578,14 @@ void PhysicsEngine::bump(EntityItem* bumpEntity) {
|
|||
EntityItem* entityB = entityMotionStateB ? entityMotionStateB->getEntity() : NULL;
|
||||
if (entityA && entityB) {
|
||||
if (entityA == bumpEntity) {
|
||||
qDebug() << "setShouldClaimSimulationOwnership(true) in bump";
|
||||
entityMotionStateB->setShouldClaimSimulationOwnership(true);
|
||||
if (!objectB->isActive()) {
|
||||
objectB->setActivationState(ACTIVE_TAG);
|
||||
}
|
||||
}
|
||||
if (entityB == bumpEntity) {
|
||||
qDebug() << "setShouldClaimSimulationOwnership(true) in bump";
|
||||
entityMotionStateA->setShouldClaimSimulationOwnership(true);
|
||||
if (!objectA->isActive()) {
|
||||
objectA->setActivationState(ACTIVE_TAG);
|
||||
|
|
Loading…
Reference in a new issue