<p>I have searched through a lot of libraries and sources, that include very diverse intersection algorithms, for computer graphics. And I've never found a capsule-box intersection algorithm. Despite that there are algorithms between capsules and many other shapes. I wonder if it's because a capsule can be represented as a cylinder with two spheres at the end, and is cheaper to calculate than doing a capsule box algorithm? Or does some other algorithm cover it? Or is there any other reason?</p>

<algorithm>
Why capsule box intersection algorithms not widely used
Lenny White
# Why capsule box intersection algorithms not widely used

(Asked by: username_0 on 2023-08-02)

I have searched through a lot of libraries and sources, that include very diverse intersection algorithms, for computer graphics. And I've never found a capsule-box intersection algorithm. Despite that there are algorithms between capsules and many other shapes. I wonder if it's because a capsule can be represented as a cylinder with two spheres at the end, and is cheaper to calculate than doing a capsule box algorithm? Or does some other algorithm cover it? Or is there any other reason?

**Tags:** algorithm

---

## 0 answers

