Interpolate "destroy" calls

All things HTML5 or text based engines, or really any web based engines.
Post Reply
robaldred
Posts: 64
Joined: Tue Aug 27, 2013 5:54 pm

Interpolate "destroy" calls

Post by robaldred »

Hey, I'm noticing that when using server side physics, If I destroy an entity server side, for example... when it hits another entity, the destroy call is not interpolated in the stream, so the entity is destroyed instantly, so the position of the entity on the client may not have reached the collision target.

Is there anyway to make the client interpolate the destroy call at the correct point in the stream?
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: Interpolate "destroy" calls

Post by coolbloke1324 »

Hey ya that is definitely an oversight. Destroy should be interpolated. I will fix this and get back to you. Won't be until at least tomorrow though.
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
robaldred
Posts: 64
Joined: Tue Aug 27, 2013 5:54 pm

Re: Interpolate "destroy" calls

Post by robaldred »

Ahh brilliant news, thanks.
No worries, whenever you have the time.
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: Interpolate "destroy" calls

Post by coolbloke1324 »

Hey ya,

I believe I have now fixed this. My calculations for interpolation of the destroy call might be off though so could you give it a try and let me know? The update is available via the dev branch of the engine.

Cheers!
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
robaldred
Posts: 64
Joined: Tue Aug 27, 2013 5:54 pm

Re: Interpolate "destroy" calls

Post by robaldred »

Perfect, it seems to work, as i'd expect.
Also it's got rid of the "received stream data for unknown entity xxxxxxxx" warnings.

Thank you!
User avatar
coolbloke1324
Posts: 181
Joined: Mon Jan 23, 2012 5:20 pm

Re: Interpolate "destroy" calls

Post by coolbloke1324 »

robaldred wrote:Perfect, it seems to work, as i'd expect.
Also it's got rid of the "received stream data for unknown entity xxxxxxxx" warnings.

Thank you!
Wonderful! :)
CEO & Lead Developer
Irrelon Software Limited
http://www.isogenicengine.com
Post Reply

Return to “HTML5/Web Engines”