bool PhysIsInCallback() { if ( (physenv && physenv->IsInSimulation()) || g_Collisions.IsInCallback() ) return true; return false; }