BEPUphysics.CollisionShapes.ConvexShapes.WrappedShape.WrappedShape C# (CSharp) Method

WrappedShape() public method

Constructs a wrapped shape. A constructor is also available which takes a list of objects rather than just a pair. The shape will be recentered. If the center is needed, use the other constructor.
public WrappedShape ( ConvexShapeEntry firstShape, ConvexShapeEntry secondShape ) : System
firstShape ConvexShapeEntry First shape in the wrapped shape.
secondShape ConvexShapeEntry Second shape in the wrapped shape.
return System
        public WrappedShape(ConvexShapeEntry firstShape, ConvexShapeEntry secondShape)
        {
            shapes.Add(firstShape);
            shapes.Add(secondShape);

            OnShapeChanged();
            Vector3 v;
            Recenter(out v);

            shapes.Changed += ShapesChanged;
        }

Same methods

WrappedShape::WrappedShape ( ConvexShapeEntry firstShape, ConvexShapeEntry secondShape, System.Vector3 &center ) : System
WrappedShape::WrappedShape ( IList shapeEntries ) : System
WrappedShape::WrappedShape ( IList shapeEntries, System.Vector3 &center ) : System