# Dwengo

Members

5

• Rank
Newbie

• Gender
Male

## Contact Methods

@JasonMartinSmit
1. ## mesh keeps falling through the map when i apply impulse

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
2. ## mesh keeps falling through the map when i apply impulse

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?
3. ## Moving to mouse point the correct equation

I feel like this is an issue that must have been solved and is a simple algorithm, but I'm struggling to figure it out myself.. https://playground.babylonjs.com/#6R8BFY#11 The problem I'm having is that if I click on the ground (so that the mesh moves towards it). If the destination point is not perfectly diagonal or straight, then the x axis or the z axis is reached first. It kind of goes diagonally for a bit before going straight for the rest of the route. The code is really simple, And my feeling is the movement logic needs improving. I'm essentially applying a force of 1 or -1 on each axis depending on where the mesh is currently until it reaches its point. Is there a better way to do this?