Dad72 Posted July 27, 2015 Share Posted July 27, 2015 On the site I can not find the demo "Editor" in the section FEATURES TESTS and since the latest version of Babylon, this no longer works.switchObjects[nameObjetSelected].vecDistanceCameraMesh = switchObjects[nameObjetSelected].pickedPoint.subtract(switchObjects[nameObjetSelected].camera.position);subtract() this tells me that is not a function. it always works before. I think there must be a bug. Thank You Quote Link to comment Share on other sites More sharing options...
davrous Posted July 27, 2015 Share Posted July 27, 2015 We've removed it. It was written a long time ago and didn't reach our quality bar. It also needed too much rewrite to be compatible with out last versions. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted July 27, 2015 Author Share Posted July 27, 2015 Oh ok. are you planning to rewrite similar functionality? Edite: fixe the problem:var operation = new BABYLON.Vector3(parseFloat(switchObjects[nameObjetSelected].pickedPoint.x), parseFloat(switchObjects[nameObjetSelected].pickedPoint.y), parseFloat(switchObjects[nameObjetSelected].pickedPoint.z));switchObjects[nameObjetSelected].vecDistanceCameraMesh = operation.subtract(switchObjects[nameObjetSelected].camera.position); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.