Closed dragonpoint closed 6 years ago
geometry.center() function modify the data in the BufferGeometry Since nexus loads and unloads remote geometry, the function won't work (and I would rather change the object matrix anyway).
Use position and scale to center the object.
I have modified the code with an example (and changed the constructor a bit).
Thanks a lot
When the NexusObject is created I want to center the model to (0,0,0) position so I called nexus_obj.geometry.center() function and it's not work as I expected. If I use threejs default obj loader and center the geometry after the obj is loaded every thing is ok