Draw.WireCapsule - possible bug or error in doc

I believe there is an error with Draw.WireCapsule(bottom, top, radius)

The doc says “The capsule’s lower circle will be centered at the bottom parameter and similarly for the upper circle” but this does not seem to be the case. Instead the bottom and top parameters appear to be the upper and lower most points of the capsule, not centered at the lower/upper circles of the capsule.

The following code will show that the bottom and top points are not alined with the upper/lower circles of the capsule.

Draw.WireCapsule(bottom, top, radius);
Debug.DrawLine(bottom, top);

I am assuming this is a bug and not an error in the doc, since the use of the function listed in the doc would match the visualization of SphereCasts and Capsules in Unity’s physics system.

Please let me know if I am mistaken!

Thanks! This is indeed a bug.
I have fixed this and it will be included in the next version.

1 Like

Thank you! I appreciate the response.