Box2D.Dynamics.World.AddType C# (CSharp) Method

AddType() private method

private AddType ( IDynamicStack creator, ShapeType type1, ShapeType type2 ) : void
creator IDynamicStack
type1 ShapeType
type2 ShapeType
return void
        private void AddType(IDynamicStack<Contact> creator, ShapeType type1, ShapeType type2)
        {
            ContactRegister register = new ContactRegister {Creator = creator, Primary = true};
            contactStacks[(int)type1][(int)type2] = register;

            if (type1 != type2)
            {
                ContactRegister register2 = new ContactRegister {Creator = creator, Primary = false};
                contactStacks[(int)type2][(int)type1] = register2;
            }
        }