Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am creating a soccer game. Now I want to shoot the ball and create an after-effect resulting in a curved path. I tried several things, but nothing seems to work.

I am using a 3D tool, but the camera is from the top. I especially want to create a curve of the ball with the effect to the left or right.

What is the best way to create a effect on the ball?

share|improve this question
2D or 3D? What are your env tools/apis? What do you already have? Can you edit your question and add more information? Also, if you want parabole, im pretty sure that a simple exponential function can give you the desired results. – Gustavo Maciel Jan 24 '12 at 7:41

The physics are very complicated, so it might be best to fake it by treating it as a weak gravity that pulls left or right depending on the kicker (and each kicker would have their own different fake gravity) and the fake gravity gets stronger as the ball slows down (so the curve becomes more J shaped). This sample article that gives an idea of some of the physics involved. The reason for the complication is that it involves both turbulent and laminar flow (the equations for which are terrible and headache inducing) depending on all sorts of factors such as the roughness of the ball (smooth like a billiard ball, dimpled like a golf ball, and the smoothness of last world cup ball made it move differently from a regular regulation ball), the impulse given to the ball (and how offset from true dead-center it is) and whether the ball is wet or dry.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.