//#####################################################################
// Function Update_Kinematic_Particles
//#####################################################################
template<class TV> void RIGID_GEOMETRY_COLLECTION<TV>::
Update_Kinematic_Particles()
{
    static_rigid_geometry.Remove_All();kinematic_rigid_geometry.Remove_All();
    for(int p=1;p<=particles.array_collection->Size();p++) if(Is_Active(p)){RIGID_GEOMETRY<TV>& rigid_geometry=Rigid_Geometry(p);
        if(rigid_geometry.is_static) static_rigid_geometry.Append(p); else kinematic_rigid_geometry.Append(p);}
}
Example #2
0
void CheaterApp::Destroy()
{
	PostMessage( _hWnd, WM_CLOSE, NULL, NULL );

	while( Is_Active() )
	{
		Sleep(10);
	}
}