Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created December 14, 2019 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/faf95458ed5698a988af6d01b9416b70 to your computer and use it in GitHub Desktop.
Save flushpot1125/faf95458ed5698a988af6d01b9416b70 to your computer and use it in GitHub Desktop.
BABYLON.SceneLoader.ImportMeshAsync("", inputs.filePath, inputs.fileName, scene).then(function(result) {
result.meshes[0].position = new BABYLON.Vector3(0, 0, 0);
result.meshes[0].scaling = new BABYLON.Vector3(inputs.scale,inputs.scale,inputs.scale);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment