soccer game

Ff9fb128492536f6ed1a7a23dd13835f
0
dcruzshan 101 Dec 05, 2005 at 08:42

I was wondering if anyone had any ideas of how to get a realistic soccer ball behaviour happening. Can anyone recommend me some good web sites to get me started along with some sample code?

Shan

8 Replies

Please log in or register to post a reply.

Ea1e202bbd97524308adb219c6c33a73
0
Methulah 101 Dec 05, 2005 at 08:53

Try the Newton Game Dynamics library or OpenDE (both of which are free physics engines). I don’t have URLs, but google should do the trick.

0684f9d33f52fa189aad7ac9e8c87510
0
baldurk 101 Dec 05, 2005 at 09:38

Please don’t cross-post. Pick the most appropriate forum and post once there.

Ff9fb128492536f6ed1a7a23dd13835f
0
dcruzshan 101 Dec 05, 2005 at 11:49

Thanks!
I will try out the Newton Game Dynamics library as it has .net wrapper classes

:D

406ad7b52f4ed7443e3971e6b2adf430
0
kariem2k 101 Dec 05, 2005 at 13:06

Hi
IMHO making soccer game from raw physics libraries will be good because it will not be fun at all it will be like soccer simulation game you must add some custom behavier to the physics.
for example try www.racer.nl it is a car simulation game it is not fun like any commercial driving game because it depends mainly on simulation and physics accurecy than the fun factor.
ODE is good for fast physics but not accurate like newton but ithink NewTon will fit because the physics entities will be relativly few.
thanks
bye

6f0a333c785da81d479a0f58c2ccb203
0
monjardin 102 Dec 05, 2005 at 22:09

I agree. It’s probably better to fake it for a fun soccer game.
Unless you are simulating something scaled down. Like just penalty kicks, where you set where you strike the ball to create spin. That still doesn’t sound like fun to me =)

Ff9fb128492536f6ed1a7a23dd13835f
0
dcruzshan 101 Dec 06, 2005 at 04:25

Ok, you people have convinced me. I think If am going to build the application using c# .net, the truevision3d game engine, have a half decent AI and all running at 60 frame, it would be a hard task to have a real physics engine.

Therefore, I think I will fake the ball physics!
If anyone out there, has more sujestion and how create a fake soccer ball physics engine let me know? :D

6f0a333c785da81d479a0f58c2ccb203
0
monjardin 102 Dec 06, 2005 at 15:31

Maybe I spoke to hastily. I was thinking of the physics of actually kicking the ball. If you fake the kick, then the physics of the ball flying and bouncing around then field and off of goals posts makes sense. This would be trivial to accomplish using a sphere for the ball and a plane for the field with ODE.
You could then fake trapping, dibbling, etc until the next kick/header occurs. Then set you initial conditions and the physics loose.
Or, am I just talking out of my ass?:huh:

Ff9fb128492536f6ed1a7a23dd13835f
0
dcruzshan 101 Dec 06, 2005 at 23:15

No your not talking out of your ass :D !

I was thinking of the phyisics involved when a player does a cross or a lob to an other player. Depending on how hard and far a player kicks the ball it should vary in hight and number of bounces.

I havent thaught about the behavioure regarding deflectin of a goal post or an other player.

I need to do more thinking i guess