thecco Posted January 9, 2014 Share Posted January 9, 2014 i want to move using check the height of the terrain but it's very difficult how can i check collision the terrain model i used free carmera camera.applyGravity = true;camera.checkCollisions = true;camera.ellipsoid = new BABYLON.Vector3(1, 10, 1); model's position = camera's postion and moving camera instead of model When stopped in the middle of the hill The model will automatically fall. When you climb or descend a hill, The angle of the model change. ---Once I combined freecamera and rotation properties of arcrotatecamera engine.runRenderLoop (function () { scene.render (); model.postion = freecamera.postion; box.postion = freecamera.postion; box.rotation = freecamera.rotation;}); Doing so. I need a little advice. Quote Link to comment Share on other sites More sharing options...
gwenael Posted January 9, 2014 Share Posted January 9, 2014 I don't really get what you want but if I have well understood you move the mesh according to camera's movements. Could you parent your model to the camera, so if you move the camera, the model will move too without having to use your runRenderLoop? Here is a jsfiddle to illustrate my words: http://jsfiddle.net/gwenaelhagenmuller/5ZD2u/ Quote Link to comment Share on other sites More sharing options...
thecco Posted January 9, 2014 Author Share Posted January 9, 2014 this server is for you http://112.160.65.98:36911/ i want check collision on Uneven terrain but whether any model (box, circle) should not. so i Decided using freecamera intead of model. but it's very slow. and when Climb the hill .... angle .... not change just ,,,,, like " - "(Bar) english breaker ... TT 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.