View Full Version : Sphere to Sphere or partical Colition
Im trying to program a perfect sphere to sphere colition method.
What I have so far is every sphere has a velocity force and location. I have every shpere interacting perfectly with each other, the only thing I want is for the spheres not to be able to become compresed like jello. Does any one know of any sites that explane how to do anything related to this.
This is what I have or what it looks like:
http://img.photobucket.com/albums/v79/witte2008/Andrews/SphereToSphereIs.jpg
This is what I whant to happen or it to look like:
http://img.photobucket.com/albums/v79/witte2008/Andrews/SphereToSphereWant.jpg
arildno
Nov23-04, 06:09 AM
Oh dear, you want an algorithm for the evolution of such a creature?
Sweet dreams..
Are you saying its imposible or somthin, cuz if you are I got to say you dount have much gut.
chronon
Nov24-04, 02:25 AM
I don't think it will be that easy. To prevent the spheres from merging into each other you need some sort of collision detection. This has been used extensively in computer games, so you should be able to find something about it on the web. To get the spheres to form a perfect crystal is more tricky - in real life as well as in the simulation. You might want to look into 'simulated annealing'
Well at least someone knows what im asking, thanks "chronon".
Im acculy doing this for game programing I jest thot it would be a good idea to try asking a physics ? on a physics forum.
Anyway here are is a nother pict:
http://img.photobucket.com/albums/v79/witte2008/Andrews/Apliction.jpg
And here is the EXE of the pict at my geocities site:
Physics.zip (http://www.geocities.com/zezba9000/Physics.zip)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.