I'm trying to add impulses and forces into my code, just playing with available options but when I try to change velocity, applyImpulse, or applyForce my compler issues a break. it compiles fine until it reaches the code.I have a ball class that holds the hkpRigidBody information for the ball. then I have a function called jump where I implement the applyImpulse function that I call when the up key is pressed.
hkVector4 imp(0, g_ball->getMass()*6, 0);
I've tried everything I can think of and just recently rebuilt the program to see if I had made some other kind of error.
When I do run it it breaks here:
// Apply an impulse to the center of mass.
inline void hkpRigidBody::applyLinearImpulse(const hkVector4& imp)
HK_ASSERT2(0x1f476204, imp.isOk3(), "Impulse passed to hkpRigidBody::applyLinearImpulse is invalid.");
-> getRigidMotion()->applyLinearImpulse(imp); <-
inside the havok code. Any help would be appreciated.