Hey,
I'm new to Box2D and have been messing around with some simple example codes. I'd now like to do something slightly more complicated and am stuck. I have a particle (ball) and would like to make it so that when the ball is hit (I apply an impulse), the ball spins and curves round (due to Magnus force). What's the best way of doing this? I've tried applying angular velocity, but the simulation just explodes. Other times, the ball simply curves away from the origin but doesn't spin back on it's original path. I'm trying to simulate a free kick in soccer which you can 'curl' round the wall. Thanks for any help.
I'm new to Box2D and have been messing around with some simple example codes. I'd now like to do something slightly more complicated and am stuck. I have a particle (ball) and would like to make it so that when the ball is hit (I apply an impulse), the ball spins and curves round (due to Magnus force). What's the best way of doing this? I've tried applying angular velocity, but the simulation just explodes. Other times, the ball simply curves away from the origin but doesn't spin back on it's original path. I'm trying to simulate a free kick in soccer which you can 'curl' round the wall. Thanks for any help.