dav74 Posted February 13, 2015 Share Posted February 13, 2015 Hello,i've a problem with my code : http://www.babylonjs-playground.com/#1VXYSEI would like to move my sphere with arrows keys but in the same time i would like to apply physics (oimo) on my sphere (for jumping). If i try with "sphere.updatePhysicsBodyPosition();" i no longer see my sphere. If i try without "sphere.updatePhysicsBodyPosition();", i see my sphere but it has a strange behavior.Thank you for your help ! David Quote Link to comment Share on other sites More sharing options...
iiceman Posted February 13, 2015 Share Posted February 13, 2015 I think you need to apply impulses to your physics object instead of just updating the position. I found this tutorial by Temechon very complete and helpful: http://pixelcodr.com/tutos/physics/physics.html Quote Link to comment Share on other sites More sharing options...
dav74 Posted February 13, 2015 Author Share Posted February 13, 2015 @iiceman thank you for the link All it's ok 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.