schteppe / p2.js

JavaScript 2D physics library
Other
2.63k stars 330 forks source link

how to get constant speed of body? #352

Open jebito opened 4 years ago

jebito commented 4 years ago

hi everyone, I would like to know how to get a constant speed of a body, I'm using body.applyForceLocal to move around and 0 gravity.

in other words how to get linear velocity and modify it directly?