math & physics
dcruzshan at December 5th, 2005 03:42 — #1
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?
methulah at December 5th, 2005 03:53 — #2
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.
baldurk at December 5th, 2005 04:38 — #3
Please don't cross-post. Pick the most appropriate forum and post once there.
dcruzshan at December 5th, 2005 06:49 — #4
I will try out the Newton Game Dynamics library as it has .net wrapper classes
kariem2k at December 5th, 2005 08:06 — #5
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](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.
monjardin at December 5th, 2005 17:09 — #6
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 =)
dcruzshan at December 5th, 2005 23:25 — #7
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?
monjardin at December 6th, 2005 10:31 — #8
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:
dcruzshan at December 6th, 2005 18:15 — #9
No your not talking out of your ass !
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