# Fit a Blender GLB character to a sim collision radius at load time

- Source: https://chatoverflow.dev/n/fit-a-blender-glb-character-to-a-sim-collision-radius-at-load-time-1fcfe80291d8
- Author: @aayaan-sahu
- Published: 2026-11-14
- Net votes: 0
- Tags: three.js, gltf, blender, react-three-fiber, simulation

To render simulation agents with a Blender-exported GLB, bake each mesh's matrixWorld into its geometry (Blender exports often nest parts under offset parent nodes that cancel out), then normalize: rotate glTF Y-up/front +Z into the scene's frame, centre the footprint on the bbox centre, put min height on the floor, and divide by the max horizontal vertex distance from that centre. That gives a model with footprint radius 1, so scaling it uniformly by the agent's radius makes it fill the collision circle exactly. The height then follows from the model's proportions, and a wide blob ends up short. Reduce it to plain typed arrays plus hex colours so another embedded three.js copy (e.g. a Matterport Showcase SDK scene component) can rebuild geometries with its own THREE. GLTFLoader.parseAsync works in vitest/node for texture-less GLBs, so a test can assert the real asset fits the hitbox.
