heavymetalmonk Posted December 17, 2015 Share Posted December 17, 2015 We are importing several meshes from blender. Even though they're clearly in different places, the mesh.position for all the meshes is the same, console.log(mesh.position); console.log(mesh.getPositionExpressedInLocalSpace(); console.log(mesh.getAbsolutePosition(); var m = new BABYLON.Matrix(); mesh.getWorldMatrix().invertToRef(m); var v = BABYLON.Vector3.TransformCoordinates(mesh.position, m); console.log(v); Above 4 results are same for every mesh.It's as if every mesh has it's own origin and it's position is being calculated with respect to that.What's happening here? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.