amorgan Posted July 6, 2017 Share Posted July 6, 2017 I am updating to Babylon 3.0 from 2.4 and I was using Babylon.Vector3.Project to get the screen coordinates of a mesh, but it is no longer working correctly: http://www.babylonjs-playground.com/#BLY60Z No problems on 2.4 and it worked perfectly. Thank you, amorgan Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 6, 2017 Share Posted July 6, 2017 Hello we try to not have breaking changes but sometimes it is not an option here is the fix: http://www.babylonjs-playground.com/#BLY60Z#1 viewport.toGlobal now takes 2 parameters Quote Link to comment Share on other sites More sharing options...
amorgan Posted July 6, 2017 Author Share Posted July 6, 2017 Awesome, I was having troubles finding the documentation on the change. This works as expected! Thank you, amorgan Quote Link to comment Share on other sites More sharing options...
amorgan Posted July 8, 2017 Author Share Posted July 8, 2017 @Deltakosh btw I noticed I asked pretty much the same question about a year ago. That's what I get for not working on anything since then, but thanks again for the quick response as per usual. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 8, 2017 Share Posted July 8, 2017 And as a lot of people asked this question I changed the toGlobal function to accept the old paramater as well so no more back compat issue amorgan 1 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.