iT2D 1.4 - Spatial information initially incorrect - RESOLVED
by Phillip O'Shea · in iTorque 2D · 07/28/2010 (1:41 am) · 2 replies
When an object that isn't using physics is added to the scene, it doesn't update its interpolation information until it is integrated. This means that for the first frame an object is rendered, it appears at position (0,0).
To correct this, check if the spatial information is dirty on the object:
To correct this, check if the spatial information is dirty on the object:
void t2dSceneObject::interpolateTick( const F32 timeDelta )
{
//%PUAP% optimizer only do physics on objects that have physics
if( !mUsesPhysics && !getSpatialDirty() )
{
return;
}
// ...
}About the author
Head of Violent Tulip, a small independent software development company working in Wollongong, Australia. Go to http://www.violent-tulip.com/ to see our latest offerings.
Employee Michael Perry
ZombieShortbus
Logged in Jira bug tracker as ITGB-85. Marked for 1.4.1 release.