Hi,
This is probably not the right forum for this question, but the intel havok forum im trying for this question is never replying any of my questions at all. So im trying here.
Im trying to get my game framerate independent but the integrate function from havok which im using turns out to make it run framerate dependent!
Im quite sure it is only this integrate function, since when I remove it
all works framerate independent.
I am also getting a message from havok that my timestep has changed by a factor 4 since the last frame. This is impossible since the framerate is constantly stable. This message is posted at both low and high framerates.
// mProxyCharacter is a hkpCharacterProxy.
mProxyCharacter->setLinearVelocity(velocityInput);
hkStepInfo stepInfo;
stepInfo.m_deltaTime = dt;
stepInfo.m_invDeltaTime = 1 / dt;
mProxyCharacter->integrate(stepInfo, gravity);
// do stuff with resolved velocity and position in mProxyCharacter
Replies
Thnx for the reply anyway.