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

Assert crashes if trying to update an empty physics world #30

Closed
haikarainen opened this Issue Jul 27, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@haikarainen
Copy link

haikarainen commented Jul 27, 2017

A simple check at the top of the update function fixes this for me:

// Update the physics simulation
/**
 * @param timeStep The amount of time to step the simulation by (in seconds)
 */
void DynamicsWorld::update(decimal timeStep) {

    if (mBodies.size() < 1)
    {
      return;
    }

    // Rest of function goes here ...
@DanielChappuis

This comment has been minimized.

Copy link
Owner

DanielChappuis commented Jul 27, 2017

Thanks for reporting this. This issue has already been cited here : #26

This will be fixed in the next release 0.7 of the library.

@DanielChappuis DanielChappuis self-assigned this Jul 27, 2017

@DanielChappuis DanielChappuis added the bug label Jul 27, 2017

@DanielChappuis DanielChappuis added this to the Version 0.7.0 milestone Jul 27, 2017

@DanielChappuis

This comment has been minimized.

Copy link
Owner

DanielChappuis commented May 1, 2018

This issue has been fixed in the version v0.7.0 of ReactPhysics3D that has just been released.
Thanks a lot for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment