Remix.run Logo
ivanjermakov 3 days ago

How did you assemble Rapier colliders from GLTFs?

franck 3 days ago | parent [-]

Nothing complicated, we simply have initialization code that parses the GLTF scene on startup by iterating over the children of a specific group, and creating Rapier colliders for each of them (Triangle Mesh Colliders to be specific, in order to allow things such as curved ramps). Since their geometry is very simple, we can use directly the rendering geometry for the collider geo.