Physijs
Physijs copied to clipboard
friction
I need to simulate a space ship, and there is now friction in space. Is it possible to disable it in Physijs so if body started to move it would never stop?
not sure how to do this with physijs, but I think you can simply add the object to your loop and keep updating the position with a constant speed, in this way you should be able to achieve the same result.
@JSirko, I think you may try setLinearVelocity, disable gravity and set friction to minimal value.
@JSirko you can disable linear and angular damping (basically air friction) using .setDamping
function in Physijs bodies:
// Disable friction in space...
body.setDamping(0, 0);