News for hackers. Stuff that matters.
Re:Show HN: A Marble Madness-inspired WebGL game we built fo... by ivanjermakov on Friday November 22, 2024 @10:34AM (#42214628)
How did you assemble Rapier colliders from GLTFs?
Re:Show HN: A Marble Madness-inspired WebGL game we built fo... by franck on Friday November 22, 2024 @11:37AM (#42215224)
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.