Hello,
I just recently started working with Havok. I am approaching it from an scientific perspective. That is, I want data.
I modified the ConsoleExampleMt standalone demo and turned it into a simple ball bouncing demo and now, I need to get force data; I wish to know how much force the ball bounces with. I first looked into implementing a collision listener. The hkpContactPointEvent& event that acts as a parameter for the contactPointCallback method has a member m_contactPointProperties which (as the name implies) contains contact point properties. It in turn has a member m_impulseApplied. m_impulseApplied as I understand corresponds to the impulse applied by the solver at the last time step. I tried attaching the collision listener to both the world and ball but kept on getting an impulse of zero. I know for sure that the listener has been attached properly (I printed off the separating velocities from the contactPointCallback method and it gave me changing velocity values).
Could you please direct me on how to get this collision force or impulse data? (Dividing impulse by the timestep would give force)
Thanks.



