Rapier-supported shapes
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.roundCuboid
, 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 ballcapsule
: A capsule shape, defined by the half-height of the capsule and its radiuscuboid
: A simple cube shape defined by passing in the half-width, half-height, and half-depth of the shapeheightfield
: A height field is a shape for which each provided value defines the height of a 3D planecylinder
: A cylinder shape defined by the half-height and the radius of the cylindercone
: A cone shape defined by the half-height and the radius of the bottom of the...