Network Interpolation

Ameise
Posts: 11
Joined: Sun Oct 18, 2009 1:18 am

Network Interpolation

Post by Ameise »

Hey, trying to network Bullet...

Is there a way to interpolate a single or a batch of objects in a simulation ONLY (IE, if I send update packets, I only want to push those forward for network latency, not the other objects)... if not, does anyone have a better suggestion other than sending FULL update packets (including all objects) each tick?
lilezek
Posts: 3
Joined: Tue Jun 01, 2010 5:35 pm

Re: Network Interpolation

Post by lilezek »

How much do you want your interpolation to delay? You can send position + velocity and then calculate where the object will be at that moment. Then interpolate between the actual and received position in that amount of time.
Ameise
Posts: 11
Joined: Sun Oct 18, 2009 1:18 am

Re: Network Interpolation

Post by Ameise »

That's my goal - I was just wondering if there is any way through Bullet to do that timestepping on a SINGLE object, versus manually applying the linear and angular velocity -- just in case Bullet does something different than I would.