Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Collider Transform assumes that mBody is a RigidBody #362

Closed
AlexanderGhosh opened this issue Dec 1, 2023 · 2 comments
Closed

Set Collider Transform assumes that mBody is a RigidBody #362

AlexanderGhosh opened this issue Dec 1, 2023 · 2 comments
Assignees
Labels

Comments

@AlexanderGhosh
Copy link

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

@AlexanderGhosh AlexanderGhosh changed the title Set Collider Transform assumes setIsSleeping Set Collider Transform assumes that mBody is a RigidBody Dec 1, 2023
@DanielChappuis DanielChappuis self-assigned this Feb 7, 2024
@DanielChappuis DanielChappuis added this to the Release v1.0.0 milestone Feb 7, 2024
@DanielChappuis
Copy link
Owner

Thanks for reporting this issue. This is already fixed in the 'develop' branch and will be part of the next release of the library.

@DanielChappuis
Copy link
Owner

This is now fixed in version v0.10.0 of the library. Thanks a lot for reporting the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants