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

bug in RigidBodyComponents::allocate #195

Closed
graphitemaster opened this issue Mar 8, 2021 · 1 comment
Closed

bug in RigidBodyComponents::allocate #195

graphitemaster opened this issue Mar 8, 2021 · 1 comment
Assignees
Labels

Comments

@graphitemaster
Copy link

Spent awhile tracking this one down, but the component allocation code only copies sizeof(bool) * mNbComponents instead of sizeof(decimal) for mSleepTimes

https://github.com/DanielChappuis/reactphysics3d/blob/master/src/components/RigidBodyComponents.cpp#L101

memcpy(newSleepTimes, mSleepTimes, mNbComponents * sizeof(bool));

@DanielChappuis DanielChappuis self-assigned this Mar 8, 2021
@DanielChappuis
Copy link
Owner

I have pushed a fix for this bug in the master branch.

Thanks a lot for taking the time to investigate this issue. This is very helpful.

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