dcversus Posted May 22, 2015 Share Posted May 22, 2015 Hi! After updating to version 2.1-alpha, stopped working moveWithCollisions. In new version this is a bug or moveWithCollisions work differently. (Go back to version 2.0 I can't, there's another bug) Code forward = new BABYLON.Vector3(parseFloat(Math.sin(parseFloat(meshPlayer.rotation.y))) / speed,0.01,parseFloat(Math.cos(parseFloat(meshPlayer.rotation.y))) / speed);forward = forward.negate();meshPlayer.moveWithCollisions(forward); Live demo http://playground.babylonjs.com/#1NQTNE Please help me solve this problem. Quote Link to comment Share on other sites More sharing options...
RaananW Posted May 22, 2015 Share Posted May 22, 2015 Problem found :-) It is due to the newly added collision system (that I still need to fully document. Coming very soon!) I'm pushing the commit in a second. Not sure thou how long till it will show up in the playground. PR - https://github.com/BabylonJS/Babylon.js/pull/523 . Quote Link to comment Share on other sites More sharing options...
dcversus Posted May 23, 2015 Author Share Posted May 23, 2015 It's awesome! Everything works! Thank you very much) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 23, 2015 Share Posted May 23, 2015 Thank for reporting (dcversus) and for fixing (raanan) dcversus 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.