I'm doing a test project for a sidescrolling shooter game I'm about to make, and I'm using Havok Physics for the first time. I'm currently trying to create bullets (capsule rigidbodies) from the character's (also a capsule) position when the player presses the mouse button.
But this makes the Havok Physics chrash at the stepMultithreaded call. When I try to create the bullet at a position outside of the character's shape then no crash occurs untill I create a bunch of bullets that collide with each other and adventually trigger the same crash. The output of Havok gives me:
Y:\Build\20120831_122323_PcXsPerpetualKeycode\Source\Physics/ConstraintSolver/Jacobian/hkpJacobianElement.inl(15): [0x75D662FB] Assert: To call getDiag, the length of the linear part must be 1.0f
What could I be doing wrong?
Thanks in advance,
Joris van Leeuwen
Update: The solution was for me to set the collisionInfo.m_weldingType to hkpWeldingUtility::WELDING_TYPE_NONE; No errors occurred after that.