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

CapsuleShape() public method

Constructs a new capsule shape.
public CapsuleShape ( float length, float radius ) : System
length float Length of the capsule's inner line segment.
radius float Radius to expand the line segment width.
return System
        public CapsuleShape(float length, float radius)
        {
            halfLength = length * .5f;
            Radius = radius;
        }