fenomas Posted June 29, 2017 Share Posted June 29, 2017 Repro: http://www.babylonjs-playground.com/#8J3QW9 I haven't checked, but I'll bet anyone a doughnut that the fix is: s/camera.position/camera._globalPosition/g Quote Link to comment Share on other sites More sharing options...
jerome Posted June 29, 2017 Share Posted June 29, 2017 you're right I'll fix this asap ! fenomas 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted June 29, 2017 Share Posted June 29, 2017 Weird, this will need more investigations as it's already using the camera.globalPosition actually : https://github.com/BabylonJS/Babylon.js/blob/master/src/Particles/babylon.solidParticleSystem.ts#L610 [EDIT] Ok, I think I understand. camera._currentTarget is expressed in the camera local space, if I'm not wrong. So the camera.globalPosition wouldn't be the right value to use. I'll test this. [EDIT 2] Just found a way to handle this and working with both camera and/or SPS mesh parenting. Fixing PR submitted fenomas 1 Quote Link to comment Share on other sites More sharing options...
fenomas Posted June 30, 2017 Author Share Posted June 30, 2017 Thanks Jerome, I've confirmed the fix in my project with new nightlies! jerome 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.