The physics object works well but i would like to know if i can make so it doesn't automatically falls off and instead it doesn't have gravity to make a space game
Develop games in your browser. Powerful, performant & highly capable.
You can set the world gravity to 0, then all objects will have no gravity. Or change density of an individual object to 0.