Hi
I've come across a very weird problem that I can't get to the bottom of, I'm hoping someone can help although Box2D seems to be a bit of a law upon itself sometimes.
Essentially what I'm doing is "firing" (think, out of a cannon) the player using setLinearVelocity using an X and a Y force (gained by finding the X and Y coordinates of an angle and multiplying them by a force), most of the time this works just fine but every now and again the force exerted is far too large for the values supplied and the character gets propelled further than anticipated, it isn't completely random as this happens with some cannons more than others but for no discernible reason.
I have dropped in some log points and the values passed are consistent every time even when the anomaly happens. Suspecting a problem with my input I've added in touch buffers and timers to make sure the function isn't be called more than once but that doesn't appear to be happening/have helped. It's also worth nothing that before applying the setLinearVelocity I am removing any existing physics from the body so they do not mess with what I am doing at the time, or at least I think I am (may have to log this data to make sure).
If anyone could shed some light on this I would highly appreciate it.
