Havok HP_World_GetNumBodies returns N-1 instead of N

Hey there,

I think I found a bug with the latest Havok version, seems like HP_World_GetNumBodies returns 1 less than the actual number of bodies:

This function is used to decide when physics regions are removed, so the miscounting can lead to situations where Havok releases a world that still has one body inside :thinking: (and crashes).

If someone with access to the Havok source can fix that, it would help me a great deal migrating to Babylon 9 :slight_smile:

cc @Cedric

Let me check that …

I can repro locally as well, an empty world has -1 bodies. I think this is an issue for @eoin

Fix merged ! Fix bug in HP_World_GetNumBodies by eoineoineoin · Pull Request #35 · BabylonJS/havok · GitHub Can you please release a new npm @RaananW ?

Of course! Will release a new version later today

Thanks a lot for the help!

1.3.14 was just released