Skip to content

Set Collider Transform assumes that mBody is a RigidBody #362

@AlexanderGhosh

Description

@AlexanderGhosh

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

Metadata

Metadata

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions