BEPUphysics.CollisionShapes.ConvexShapes.MinkowskiSumShape.MinkowskiSumShape C# (CSharp) Метод

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

Constructs a minkowski sum shape. The sum will be recentered on its local origin. The computed center is outputted by the other constructor.
public MinkowskiSumShape ( IList shapeEntries ) : System
shapeEntries IList Entries composing the minkowski sum.
Результат System
        public MinkowskiSumShape(IList<OrientedConvexShapeEntry> shapeEntries)
        {
            if (shapeEntries.Count == 0)
                throw new Exception("Cannot create a wrapped shape with no contained shapes.");
            for (int i = 0; i < shapeEntries.Count; i++)
            {
                shapes.Add(shapeEntries[i]);
            }
            shapes.Changed += ShapesChanged;
            OnShapeChanged();
            localOffset = -ComputeCenter();
        }

Same methods

MinkowskiSumShape::MinkowskiSumShape ( IList shapeEntries, Vector3 &center ) : System
MinkowskiSumShape::MinkowskiSumShape ( OrientedConvexShapeEntry firstShape, OrientedConvexShapeEntry secondShape ) : System
MinkowskiSumShape::MinkowskiSumShape ( OrientedConvexShapeEntry firstShape, OrientedConvexShapeEntry secondShape, Vector3 &center ) : System