project2D/CollisionManager.cpp
//--------------------------------------------------------------------------------------
// RemoveObject: Remove object from the collision list.
//
// Param:
//		pObject: An entity for the object you want to remove.
//--------------------------------------------------------------------------------------
Remove object from the collision list.
Param:
pObject: An entity for the object you want to remove.
Remove object from the collision list . Param : pObject : An entity for the object you want to remove .
void CollisionManager::RemoveObject(Entity* pObject)
{
	auto iter = std::find(m_CollisionList.begin(), m_CollisionList.end(), pObject);
	if (iter != m_CollisionList.end())
	m_CollisionList.erase(iter);
}
void CollisionManager :: RemoveObject ( Entity * pObject ) { auto iter = std :: find ( m_CollisionList . begin ( ) , m_CollisionList . end ( ) , pObject ) ; if ( iter != m_CollisionList . end ( ) ) m_CollisionList . erase ( iter ) ; }
RemoveObject: Remove object from the collision list.
RemoveObject : Remove object from the collision list .