UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

72 lines (34 loc) 993 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [ModelRegistry](./server.modelregistry.md) &gt; [getTrimesh](./server.modelregistry.gettrimesh.md) ## ModelRegistry.getTrimesh() method Retrieves the trimesh of a model. **Signature:** ```typescript getTrimesh(modelUri: string, scale?: number): ModelTrimesh | undefined; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> modelUri </td><td> string </td><td> The URI of the model to retrieve the trimesh for. </td></tr> <tr><td> scale </td><td> number </td><td> _(Optional)_ Optional uniform scaling to apply to the trimesh. Defaults to 1, which is no scaling. </td></tr> </tbody></table> **Returns:** [ModelTrimesh](./server.modeltrimesh.md) \| undefined The trimesh of the model.