Rapier Built in Shapes
Learn how to use geometric shapes supported by Rapier.
We'll cover the following...
We'll cover the following...
Rapier-supported shapes
Rapier provides a number of shapes we can use to wrap our geometries. In this lesson, we’ll walk through all the available Rapier shapes and demonstrate these meshes through an example. Note that to use these shapes we 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
: It is a ball shape, configured by setting the radius of the ball.capsule
: It is a capsule shape, defined by the half-height of the capsule and its radius.cuboid
: ...