RemoveEntity() public méthode

public RemoveEntity ( Entity e ) : void
e Entity
Résultat void
Exemple #1
0
 /// <summary>
 /// Removes the physics body of the given entity from the physics world.
 /// </summary>
 public void RemoveEntity(Entity e, World.World worldState)
 {
     e.Dispose();
     worldState.RemoveEntity(e);
     if (e.PhysicsBody != null)
     {
         EntityIdByPhysicsBody.Remove(e.PhysicsBody);
         RemoveBody(e.PhysicsBody);
         e.PhysicsBody = null;
     }
 }