It looks like you're new here. If you want to get involved, click one of these buttons!
Is there any possible way to make a 3D physics object become unaffected by gravity?? Like if the physics body type was DYNAMIC for instance, is there any way for it to become unaffected by gravity??
Thanks in advance
Comments
@Creator27 Make it KINEMATIC. Have you looked thru any of the builtin reference. You’ll find a lot of info there.
@dave1707, I have tried using KINEMATIC bodies and linear velocity but didn’t work. Could you possibly show me an example??
Thanks
Apparently you have to turn gravity off using scene.physics.gravity. But that affects all 3D objects.
Or you can leave gravity on if you want to alter the direction it’s going under gravity.
It’s a shame we can’t disable gravity on a per rigid-body basis too.
@arismoko I haven’t figured out the linearVelocity on a Kinematic body, must be a bug or not implemented. Here some code that will allow you to ignore collisions on Dynamic bodies. You can use Group and Mask to ignore collisions. Don’t know if that will help since you still have to ignore gravity on everything.