Jump to content


- - - - -

soccer game


8 replies to this topic

#1 dcruzshan

    New Member

  • Members
  • Pip
  • 8 posts

Posted 05 December 2005 - 08:42 AM

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

#2 Methulah

    Senior Member

  • Members
  • PipPipPipPip
  • 727 posts

Posted 05 December 2005 - 08:53 AM

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.
Django Merope-Synge :: django@white-epsilon.com
Lead Designer/Project Manager - White Epsilon

#3 baldurk

    Senior Member

  • Members
  • PipPipPipPip
  • 1057 posts

Posted 05 December 2005 - 09:38 AM

Please don't cross-post. Pick the most appropriate forum and post once there.
baldurk
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.

#4 dcruzshan

    New Member

  • Members
  • Pip
  • 8 posts

Posted 05 December 2005 - 11:49 AM

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

:D

#5 kariem2k

    Valued Member

  • Members
  • PipPipPip
  • 207 posts

Posted 05 December 2005 - 01:06 PM

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

#6 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 05 December 2005 - 10:09 PM

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 =)
monjardin's JwN Meter (1,2,3,4,5,6):
|----|----|----|----|----|----|----|----|----|----|
*

#7 dcruzshan

    New Member

  • Members
  • Pip
  • 8 posts

Posted 06 December 2005 - 04:25 AM

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

#8 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 06 December 2005 - 03:31 PM

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:
monjardin's JwN Meter (1,2,3,4,5,6):
|----|----|----|----|----|----|----|----|----|----|
*

#9 dcruzshan

    New Member

  • Members
  • Pip
  • 8 posts

Posted 06 December 2005 - 11:15 PM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users