diff --git a/CHANGELOG.md b/CHANGELOG.md index 42c61267..ed507d65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [0.10.2] - 2024-10-01 - Issue [#402](https://github.com/DanielChappuis/reactphysics3d/issues/402) Adding colliders to inactive body +- Issue [#391](https://github.com/DanielChappuis/reactphysics3d/issues/391) with assert in OverlappingPairs::setNeedToTestOverlap() method - Fix issue with capsule vs capsule collision detection ### Fixed diff --git a/src/body/RigidBody.cpp b/src/body/RigidBody.cpp index c2a5e119..7018701c 100644 --- a/src/body/RigidBody.cpp +++ b/src/body/RigidBody.cpp @@ -855,10 +855,10 @@ void RigidBody::setTransform(const Transform& transform) { mWorld.mRigidBodyComponents.setConstrainedOrientation(mEntity, transform.getOrientation()); } - Body::setTransform(transform); - // Awake the body if it is sleeping setIsSleeping(false); + + Body::setTransform(transform); } // Return the linear velocity