kirbyquerby / phys2d

Automatically exported from code.google.com/p/phys2d
0 stars 0 forks source link

Fix hardness/elastic collisions #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently the hardness/elsatic collisions code works in 2 body collisions
but appears to add extra energy in larger scale collisions - see the Pool
ball demo.

Original issue reported on code.google.com by kevgl...@gmail.com on 5 Aug 2006 at 4:30

GoogleCodeExporter commented 8 years ago
Restitution calculations don't fit well into a system based on impulses where
penetration is accepted and effectively ignored. If collisions were swept and 
hence
perfect the current system would provide restitution - however, the trade off 
between
simplicity and perfect elastic collision seems fair as is. This physics system 
will
not work for *true* simulations where swept collision should be used.

Original comment by kevgl...@gmail.com on 7 Aug 2006 at 4:43

GoogleCodeExporter commented 8 years ago
Restitution calculations don't fit well into a system based on impulses where
penetration is accepted and effectively ignored. If collisions were swept and 
hence
perfect the current system would provide restitution - however, the trade off 
between
simplicity and perfect elastic collision seems fair as is. This physics system 
will
not work for *true* simulations where swept collision should be used.

Original comment by kevgl...@gmail.com on 7 Aug 2006 at 4:46

GoogleCodeExporter commented 8 years ago
Restitution calculations don't fit well into a system based on impulses where
penetration is accepted and effectively ignored. If collisions were swept and 
hence
perfect the current system would provide restitution - however, the trade off 
between
simplicity and perfect elastic collision seems fair as is. This physics system 
will
not work for *true* simulations where swept collision should be used.

Original comment by kevgl...@gmail.com on 7 Aug 2006 at 4:49

GoogleCodeExporter commented 8 years ago
Duplicate comments caused by Google servers not responding :(

Original comment by kevgl...@gmail.com on 7 Aug 2006 at 5:37

GoogleCodeExporter commented 8 years ago
Restitution calculations don't fit well into a system based on impulses where
penetration is accepted and effectively ignored. If collisions were swept and 
hence
perfect the current system would provide restitution - however, the trade off 
between
simplicity and perfect elastic collision seems fair as is. This physics system 
will
not work for *true* simulations where swept collision should be used.

Original comment by kevgl...@gmail.com on 7 Aug 2006 at 5:37

GoogleCodeExporter commented 8 years ago
Scratch the rubbish above. Restitution is implicit in the original demo - a
resitution of zero. Restitution has now been added correct and works well in 
demos.

Also added Body.getEnergy() and World.getEnergy() to evaluate the total energy 
in the
system. This aids in ensuring resititution is correct.

Changes to engine and demos made in Revision 16.

Original comment by kevgl...@gmail.com on 11 Aug 2006 at 5:59

GoogleCodeExporter commented 8 years ago
Much appreciated help from the following thread.

http://www.continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=273

Original comment by kevgl...@gmail.com on 11 Aug 2006 at 6:04