Soft bodies

Discuss new features and future development.

Soft bodies

Postby pTymN » Tue Sep 25, 2007 2:20 pm

Hey,

I was noticing that Alec Rivers has released the physical source, which is a 2d physics engine that is notable for being slow, and supporting liquids/soft bodies. After some pondering and glancing through code, I determined that it would probably be easier to add soft bodies to Chipmunk than to add rigid bodies to physical. http://www.alecrivers.com/projects/physical.htm

It seems that the main issue with Chipmunk is that I'd like to be able to collide zero radius particles with other items in a chipmunk scene, and also collide small force fields with objects in a scene, but use custom code to handle the collision in those cases, a soft repel as opposed to a hard collision. Any thoughts? Has anyone made liquids with Chipmunk?
pTymN
 
Posts: 5
Joined: Thu Aug 23, 2007 12:25 pm

Re: Soft bodies

Postby slembcke » Wed Sep 26, 2007 12:29 am

I have thought about it, but it's really difficult to mix jakobsen style physics with the impulse based stuff I do in Chipmunk. The issue is that the jakobsen physics works on positions while Chipmunk works on velocities. Because they are done at differing times of the integration, it's darn near impossible to mix them well.

Creating jakobsen style objects that are affected by the rigid bodies (but not the other way around) would be very doable though. At least it could be used for special effects and some limited gameplay then.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm


Return to Features/Development

Who is online

Users browsing this forum: No registered users and 1 guest