Pryme8
March 5, 2019, 10:26pm
6
Bonus points if you are able to make it as a custom geometry buffer, and have a clean uv for the cylinder and both caps in the same space and arguments like cap subdivisions.
https://doc.babylonjs.com/how_to/custom
A capsule (from Latin capsula, "small box or chest"), or stadium of revolution, is a basic three-dimensional geometric shape consisting of a cylinder with hemispherical ends. Another name for this shape is spherocylinder.
The shape is used for containers for pressurised gasses and for pharmaceutical capsules.
The volume of a capsule is calculated by adding the volume of the two hemispheres (a sphere of radius
r
{\displaystyle r}
) to the volume of the ...
And these should get the creative juices going!