ewanvalentine Posted September 20, 2016 Share Posted September 20, 2016 Hi folks, I have the following example...http://www.babylonjs-playground.com/#OYE6Q#4 I was wondering how I'd go about moving the smaller mesh around the plane, by clicking on it, then clicking on a different point in the plane, but in such a way that it uses the physics engine. Currently, if I set another block to having 0 mass, so that it's static. The smaller moveable block passes through the static block. I understand that this is because, animation doesn't actually use the physics engine. So I was wondering if anyone knew how to replicate this behaviour, but using the physics engine. I attempted to use 'applyImpulse' but that seemed to be for applying constant force, such as onKeyDown. I'm a total n00b to game dev and to Babylon, so any help is hugely appreciated. Cheers, Ewan 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.