Undesired interpolation after resetting position

KayJ
Posts: 4
Joined: Mon Oct 12, 2009 2:11 pm

Undesired interpolation after resetting position

Post by KayJ »

Hi,

I've got a problem with my chasing camera handled by the bullet phyiscs. I've got a character that moves through the world chased by a camera. When restarting the game, the character is positioned at its origin and the camera should be positioned at a desired position (pos0) that depends on the characters position.

Resetting the cameras position seems to work. When calling my update loop after restarting the game, the position is correct. The next update frame has nearly the same value (posX) as it had before restarting the game. During the next update calls the position is interpolated from posX to pos0.

Does someone have any ideas how to fix this problem?

Thanks in advance!

KayJ
KayJ
Posts: 4
Joined: Mon Oct 12, 2009 2:11 pm

Re: Undesired interpolation after resetting position

Post by KayJ »

...no ideas? :\