DanielChappuis / reactphysics3d

Open source C++ physics engine library in 3D

Home Page:http://www.reactphysics3d.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.