Merge branch 'Minigeee-develop' into develop

This commit is contained in:
Daniel Chappuis 2021-07-01 23:32:13 +02:00
commit afa4fd7253
2 changed files with 2 additions and 1 deletions

View File

@ -222,6 +222,7 @@ class RigidBody : public CollisionBody {
friend class SolveHingeJointSystem;
friend class SolveSliderJointSystem;
friend class Joint;
friend class Collider;
};
/// Compute the inverse of the inertia tensor in world coordinates.

View File

@ -114,7 +114,7 @@ void Collider::setLocalToBodyTransform(const Transform& transform) {
RigidBody* rigidBody = static_cast<RigidBody*>(mBody);
if (rigidBody != nullptr) {
mBody->mWorld.mRigidBodyComponents.setIsSleeping(mBody->getEntity(), false);
rigidBody->setIsSleeping(false);
}
mBody->mWorld.mCollisionDetection.updateCollider(mEntity, 0);