Ballz.GameSession.Physics.PhysicsControl.RemoveEntity C# (CSharp) Метод

RemoveEntity() публичный Метод

Removes the physics body of the given entity from the physics world.
public RemoveEntity ( Entity e, World worldState ) : void
e Entity
worldState World
Результат void
        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;
            }
        }