shapes/cylinder library
Classes
- Cylinder
- Cylinder class. @example const radiusTop = 0.5 const radiusBottom = 0.5 const height = 2 const numSegments = 12 const cylinderShape = new CANNON.Cylinder(radiusTop, radiusBottom, height, numSegments) const cylinderBody = new CANNON.Body({ mass: 1, shape: cylinderShape }) world.addBody(cylinderBody)