Measurement Units

De TriLib
Revisão de 09h10min de 18 de maio de 2024 por Trilib (discussão | contribs)
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegação Ir para pesquisar

3D authoring software has its own measurement units. TriLib has some options to convert between these units and Unity units.

*By default, 1 Unity unit is 1 Meter.

To keep the original measurement unit used when exporting your models, make sure your AssetLoaderOptions instance UseFileScale field is set to true .This way, TriLib will try to use the measurement unit used when your model has been exported.

If the default Unity measurement units is unsuitable, you can multiply the scale with any factor using the AssetLoaderOptions.ScaleFactor field. By default, this value is 1.0, which keeps the original measurement unit used when exporting your model.

*Only FBX and DAE files have options to export the measurement unit used when authoring the models. TriLib keeps the original units when loading models created in any other file format.