w0rm / elm-physics

3D physics engine in Elm
https://package.elm-lang.org/packages/w0rm/elm-physics/latest
BSD 3-Clause "New" or "Revised" License
146 stars 12 forks source link

Capsule shape support #103

Open w0rm opened 4 years ago

w0rm commented 4 years ago

https://en.wikipedia.org/wiki/Capsule_(geometry)

Capsule shape is nice for modelling many interesting things.

Unlike the cylinder shape, it doesn't have to be approximated internally as a convex polyhedron with many vertices.

This makes it efficient for collisions.

TDB: api for Shape.capsule (because elm-geometry currently doesn't support Capsule3d)