Disable gravity for one mesh w/ physics impostor

Hi Guys,

I have two meshes w/ physics impostors.
I want only one of them to get affected by physics gravity.
How can I make the other mesh w/ physics impostor not get affected by physics gravity and still be able to move it to a direction?

PG:
https://playground.babylonjs.com/#KBS9I5#2844

If you don’t need to consider the effect any any force applied to box1 (e.g. collision). You can set mass to 0.

Otherwise you can lock the y position of box1:

https://playground.babylonjs.com/#KBS9I5#2845

3 Likes