Rapier provides a number of shapes you can use to wrap your geometries. In this section, we’ll walk you through all the available Rapier shapes and demonstrate these meshes through an example. Note that to use these shapes you need to call
RAPIER.ColliderDesc.ball, and so on.
Rapier provides 3D shapes and 2D shapes. We’ll only look at the 3D shapes provided by Rapier:
ball: A ball shape, configured by setting the radius of the ball
capsule: A capsule shape, defined by the half-height of the capsule and its radius
cuboid: A simple cube shape defined by passing in the half-width, half-height, and half-depth of the shape
heightfield: A height field is a shape for which each provided value defines the height of a 3D plane
cylinder: A cylinder shape defined by the half-height and the radius of the cylinder
cone: A cone shape defined by the half-height and the radius of the bottom of the...