Hey! So I am working on this football game: http://pixelpizza.de/wordpress/?p=297
and currently i am stuck at the "kick a Ball" part. kicking works great so far and looks like this: http://postimg.org/image/z6t07aa31/
what i want do do now is, using AddForce/Impulse in a way that the ball is flying into the direction of the kick/where i kick it as soon as the feet collides with the ball when the kick animation is played or the kick button is pressed.
so what i want to know is:
- how can i apply a force from the
feet?
- as soon as the feet collides with the
ball?
- if the kick is going on (not that
the ball flies away every time
I touch the ball)
thanks!
↧