SetLinearVelocity not working [Answered]

Hello,


I am currently moving our player characters using ApplyForce. This works nicely, but it doesn't give me full control over the PCs.

So I tried switching to SetLinearVelocity - but there is no effect. Even with huge values.
I also tried using it to simply set the velocity to 0 (after applying forces), and it does not stop.

I looked through the box2d code and my own code but did not find any issues. I checked the manual and it says it should just work.

Am I forgetting something simple?


Thanks a lot!
Antoon


Answer: Be sure to WakeUp() the body. ApplyForce() does this automatically.

Original thread: https://box2d.org/forum/viewtopic.php?t=4734