Hi,
I've a series of rigid body birds whose motion types are MOTION_KEYFRAMED. The requirement is that when the bird is hit by a bullet, it has to be converted to MOTION_DYNAMIC or to a similar motion type. But unfortunately the motion type does not change. The code snippet is as follows:
hkpRigidBody* rb = getRigidBody();
rb->setMotionType(hkpMotion::MOTION_DYNAMIC);
if(hkpMotion::MOTION_DYNAMIC == rb->getMotionType()){
std::cout << " succeeded." << std::endl;
} else {
std::cerr << " failed!" << std::endl;
}
Even if i consider the possibility the motion type can be changed some time later, causing the query to return false, thisis not the case, the rigid body continues to be MOTION_KEYFRAMED.
I'm using Havok 2012.1.0.r1 SIMD VS 2010 version.
Do you have any idea what can be the cause?
Thanks for advance,
Umut

