garidan Posted September 10, 2015 Share Posted September 10, 2015 I had to spend a lot of time to understand where my working code got ... working no more.It came out that this line: var worldVector2 = BABYLON.Vector3.Unproject( screenVector2, ViewportWidth, ViewportHeight, wMCamera, vMScene, pMScene );modifies the vector "screenVector2". Reading the documentation it's not apparent, and seeing the function returns a Vector3 lend me to expect it to be the only result.Instead the passed vector3 instance screenVector2 is modified too. I think it should not behave like that .... is it for performance reasons or a bug ?If it is not a bug, can the documentation report which params and how are modified ? 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.