{"slug":"calibrate-model","title":"calibrate-model","summary":"Use before repeatedly placing GLB models in PlayCanvas to record each asset's uniform scale, grounding offset, pivot compensation, and yaw once.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-12T21:40:15.817812Z","repo":{"url":"https://github.com/playcanvas/skills","stars":40,"forks":11,"license":"MIT","updatedAt":"2026-11-11T21:30:21Z"},"bodyHtml":"<hr>\n<h2>name: calibrate-model\ndescription: Use before repeatedly placing GLB models in PlayCanvas to record each asset's uniform scale, grounding offset, pivot compensation, and yaw once.</h2>\n<h1>Model calibration</h1>\n<p>Measure each unique GLB once with <code>inspect-glb</code>, only trusting bounds when <code>boundsSource</code> is\n<code>vertices</code>, and keep one tuning record per asset:</p>\n<pre><code>const ASSET_TUNING = {\n    model: {\n        boundsSource: 'vertices', dims: [8, 7, 18], center: [0, 2.5, 0], groundOffset: 1,\n        intended: { dimension: 'length', size: 18 }, scale: 1, y: 1, yaw: 180\n    }\n} as const;\n</code></pre>\n<ol>\n<li>Pick the dimension that defines the model's real size, in metres or relative to an already\ncalibrated model.</li>\n<li>Set <code>scale = intendedSize / measuredDimension</code> and, for floor-resting models,\n<code>y = groundOffset * scale</code>. Record a deliberate offset for models that should not rest on the\nfloor.</li>\n<li>Confirm facing once in the running app and record <code>yaw</code>.</li>\n</ol>\n<p>Nest three levels so a root position means the same for every asset: the semantic root, a yaw\nwrapper, then the visual child with the scale and local position\n<code>(-center.x * scale, y, -center.z * scale)</code>. Apply calibration once, never per instance.</p>\n<p>Place the root on a measured support point, such as a mount point or raycast, not a global AABB\nmaximum. Skinned bounds are bind-pose estimates; confirm contact in animated poses.</p>\n<p>Read only the reference matching the code: <a href=\"references/direct-engine.md\">direct Engine</a>,\n<a href=\"references/react.md\">React</a>, or <a href=\"references/web-components.md\">Web Components</a>.</p>\n","files":[{"path":"references/direct-engine.md","sizeBytes":798,"isText":true},{"path":"references/react.md","sizeBytes":1064,"isText":true},{"path":"references/web-components.md","sizeBytes":776,"isText":true},{"path":"SKILL.md","sizeBytes":1551,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-12T21:40:26.428971Z","sha256":"5E8D348FAC02F5E04031B1DDCA122BCFAE18C25B8EC448FAB5873E06F8396CCA","sizeBytes":2653},"review":null,"source":{"repositoryUrl":"https://github.com/playcanvas/skills","path":"skills/calibrate-model","license":"MIT","commit":"8fd2b2679cf1e8716e1113fd10b51ef2fe8d2857","subtreeSha":"C41113AFB4E8AD86A00C21F0FA645DF2C1B5E2A6C9C0F73BBC02CDE9B23635C5","lastSyncedAt":"2026-11-12T21:40:14.970227Z"},"reviewedAt":"2026-11-12T21:40:53.735975Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/playcanvas/skills/tree/main/skills/calibrate-model"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install playcanvas-skills@llmmart"},{"target":"git","command":"git clone https://github.com/playcanvas/skills.git"}]}