Jitter.Collision.CollisionSystemBrute.AddEntity C# (CSharp) Method

AddEntity() public method

Add a body to the collision system. Adding a body to the world does automatically add it to the collision system.
public AddEntity ( IBroadphaseEntity body ) : void
body IBroadphaseEntity The body to remove.
return void
        public override void AddEntity(IBroadphaseEntity body)
        {
            if (bodyList.Contains(body))
                throw new ArgumentException("The body was already added to the collision system.", "body");

            // just keep our internal list in sync
            bodyList.Add(body);
        }