Set Collider Transform assumes that mBody is a RigidBody
AlexanderGhosh opened this issue · comments
In the function Collider::setLocalToBodyTransform
it makes the assumption that 'mBody' is a RigidBody
RigidBody* rigidBody = static_cast<RigidBody*>(mBody);
if (rigidBody != nullptr) {
rigidBody->setIsSleeping(false);
}
however this assumption doesn't not hold when the Collider is attached to a CollisionBody causing an assertion to fail when calling RigidBody::setIsSleeping
Thanks for reporting this issue. This is already fixed in the 'develop' branch and will be part of the next release of the library.
This is now fixed in version v0.10.0 of the library. Thanks a lot for reporting the issue.