Game Development Community

InterpolateTick keeps getting called after deletion

by Brady · in Technical Issues · 08/20/2008 (4:25 am) · 0 replies

Just an FYI, after working on some PhysX code, I realized that interpolateTick() will sometimes get called one or two times even after onRemove() has been called when an object is deleted from the scene.

If this is not supposed to be, then I need someone to explain what I've done wrong that is leading to this. Otherwise, coders beware! Just because onRemove() was called doesn't mean your object is totally out of the simulation yet. So be sure to take that into account.