I have successfully loaded an FBX Object into the scene
const objLoader = new FBXLoader();
objLoader.load( '{{asset('models/model.fbx')}}', function ( object ) {
scene.add( object );
object.position.y = 0;
object.position.x = 0;
object.position.z = 0;
object.updateMatrix();
});
Despite loading "object" as an async FBX object, its properties are inaccessible outside the loader function.
How can I make attributes such as position and rotation of the object accessible outside the loader?
I attempted to place everything inside the loader, including the animate() function, but this doesn't seem like the most efficient solution...