Allegro.cc - Online Community

Allegro.cc Forums » Game Design & Concepts » Excellent snooker ball (circle to circle) physics explanation

This thread is locked; no one can reply to it. rss feed Print
Excellent snooker ball (circle to circle) physics explanation
James Stanley
Member #7,275
May 2006
avatar

I am currently writing a 2D space shooter in which each player controls a ship that is ball shaped, the best explanation of ball to ball physics I have found is:
http://freespace.virgin.net/hugo.elias/models/m_snokr.htm
I am posting it here partly to thank Hugo Elias, and partly to help others who may be having a similar problem.

Hard Rock
Member #1,547
September 2001
avatar

Correct me if I'm wrong, but this seems like a highly simplified version of the problem. All it deals with is momentum. We don't have any explanations of how to solve the remaining problems of rolling and friction. And what if the pool table is slantd? How does it account for slopes :P

_________________________________________________
Hard Rock
[ Stars Dev Company ][ Twitter ][Global Warming: ARA My TINS 07 Entry][Pong Ultra Website][GifAllegS Ver 1.07]
"Well there's also coolwebsearch but we'll let that be an IE exclusive feature" - arielb on the New Browser Plugins "What's better, HTML or Variables?"

James Stanley
Member #7,275
May 2006
avatar

:)
You seem to misunderstand me.
By excellent, I meant simple to understand for somebody who's not a professional mathematician.

LennyLen
Member #5,313
December 2004
avatar

Quote:

You seem to misunderstand me.

That's what happens when you make up your own meanings for words. :P

Timorg
Member #2,028
March 2002

It doesn't take into account when a ball is spinning and collides with another ball. :(

____________________________________________________________________________________________
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

Jonny Cook
Member #4,055
November 2003

I love stuff for stupid people!

The face of a child can say it all, especially the mouth part of the face.

James Stanley
Member #7,275
May 2006
avatar

Well I'm sorry if it's too simple for you all :(.
I posted it because it's the only explanation I understood (and even then I had to go and find out what dot products are normalising were).

GullRaDriel
Member #3,861
September 2003
avatar

That is the basics, but it is cool.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Jonny Cook
Member #4,055
November 2003

Quote:

Well I'm sorry if it's too simple for you all :(.
I posted it because it's the only explanation I understood (and even then I had to go and find out what dot products are normalising were).

I actually was being serious. I do love stuff for stupid people, as I consider myself one of them. I do see how my comment could have been taken as sarcastic though...

The face of a child can say it all, especially the mouth part of the face.

Matt Smith
Member #783
November 2000

I gave up on my football game in the last world cup because I couldn't get the ball physics right in the time I alloted myself. In particular converting friction into spin when the ball bounced on the ground was where I stopped coding and started dreaming about a general purpose ballslib.

If it had been a serious project I would have tried to use the Bullet physics lib.

Roberto
Member #7,391
June 2006
avatar

Well, to complete this topic and avoid people to get frustrated, given the title, I would like someone to put a more specific and useful link.

Go to: