Builds the Rapier collider descriptor for a §24 collision shape — the
createCollider counterpart of createRapierShape3d.
Note ColliderDesc.cuboid takes three half-extents in the 3D build where
it takes two in 2D; that is the only shared signature that differs between
the dimensions.
Height field (PH-22a).HeightFieldShape counts samples and Rapier
counts subdivisions, so rows/columns arrive here and leave as
rows − 1 / columns − 1. The heights array is passed straight through:
both sides are column-major and (rows − 1 + 1) · (columns − 1 + 1) is
rows · columns, which validateCollisionShape has already checked.
Compound. Same as 2D: several colliders on one body, not a shape tag.
Cylinder, cone, convex-hull, triangle-mesh, and height-field all map above.
Builds the Rapier collider descriptor for a §24 collision shape — the
createCollidercounterpart of createRapierShape3d.Note
ColliderDesc.cuboidtakes three half-extents in the 3D build where it takes two in 2D; that is the only shared signature that differs between the dimensions.Height field (PH-22a).
HeightFieldShapecounts samples and Rapier counts subdivisions, sorows/columnsarrive here and leave asrows − 1/columns − 1. The heights array is passed straight through: both sides are column-major and(rows − 1 + 1) · (columns − 1 + 1)isrows · columns, whichvalidateCollisionShapehas already checked.Compound. Same as 2D: several colliders on one body, not a shape tag. Cylinder, cone, convex-hull, triangle-mesh, and height-field all map above.