I'm making a top down soccer game using physics. When the player kicks the ball, the ball only travels a few pixels. No matter what force/impulse I add, I can't seem to change it.
Any clue where I'm going wrong? Thanks.
kenhes
i take it your ball has a physics behavior? Could you post a capx.
It may be a matter of fiction. Try to reduce it with low number. I am just giving you what I am thinking, I am also new to C2. <img src="smileys/smiley4.gif" border="0" align="middle" />
Yes, the ball has physics and low friction. Here's a capx to play with. Maybe you can find the problem? To move the player, drag the button at the bottom.
Physics Ball
Develop games in your browser. Powerful, performant & highly capable.
You are applying impulse to the player, not to the ball. Use:
(ball) Apply impulse 500 towards ball.x-100, ball.y
That did it. Thanks 7Soul!