step Interpolation and camera movement

razer
Posts: 82
Joined: Sun Apr 04, 2010 10:08 pm

step Interpolation and camera movement

Post by razer »

I am programming camera movement and there is high vibration.
(camera follows ship)
I think vibration would be decreased if camera would be part of physics world and moved by bullet.

Vibration might be coursed by difference in bullet interpolation algorithm and my code.
So if both object would be moved by same algorithm then there would be no vibration.
I have defined btActionListener subclass to control camera's object.

Is that enough to setWorldTransform() or should I also setLinearVelocity() and setAngularVelocity() ?

----

Also what is the best object for camera? (GhostBody, RigidBody with no contact response) ?

Thanks