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

GetLocalExtremePointWithoutMargin() public method

Gets the extreme point of the shape in local space in a given direction.
public GetLocalExtremePointWithoutMargin ( Vector3 &direction, Vector3 &extremePoint ) : void
direction Vector3 Direction to find the extreme point in.
extremePoint Vector3 Extreme point on the shape.
return void
        public override void GetLocalExtremePointWithoutMargin(ref Vector3 direction, out Vector3 extremePoint)
        {
            if (direction.Y > 0)
                extremePoint = new Vector3(0, halfLength, 0);
            else if (direction.Y < 0)
                extremePoint = new Vector3(0, -halfLength, 0);
            else
                extremePoint = Toolbox.ZeroVector;
        }