Dwengo Posted March 12, 2018 Share Posted March 12, 2018 Hi all, so question is in topic really, I'm toying with point and click functionality using oimo js. You can see the effects here: https://playground.babylonjs.com/#645VV4#10 (old one) https://playground.babylonjs.com/#645VV4#12 If i use a sphereimposter for the mesh i'm moving, it works (kind of). but if i use the boxImposter (which i kind of want to) the box just falls off the map after a while, I don't update the Y axis at any point. I did try a kind of hack where i apply a little impulse to lift it off the ground... But it just kept going ._.; Any ideas on how to prevent this? Quote Link to comment Share on other sites More sharing options...
RaananW Posted March 12, 2018 Share Posted March 12, 2018 Hi! two things: 1) your ground is a box, but defined as a sphereImpostor. 2) your impulse is very (very) strong. Not a problem, but will prevent you from really understanding what goes on. Here is the ground as a sphere with a bit less impulse - https://playground.babylonjs.com/#645VV4#15 Quote Link to comment Share on other sites More sharing options...
Dwengo Posted March 12, 2018 Author Share Posted March 12, 2018 Ahh gawd, its always the simple things... Sometimes its just an extra pair of eye that helps: I've updated it to use a box: https://playground.babylonjs.com/#645VV4#17 Thanks for the help RaananW and GameMonetize 2 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.