PDA

View Full Version : make an object elastic and flexible



bahare
07-21-2011, 12:14 AM
hi there;
I have a question if i wanna make an object, like sphere, elastic what I should do? actually in my program I have a robot which is moving around and in its environment there is an obstacle (sphere).I want to make this sphere elastic in a way, as robot reach to that this sphere acts like a elastic object.
Any help would be appreciate so much.

aqnuep
07-21-2011, 12:34 AM
You either have to implement the deformation on your own or use a physics library like Bullet Physics (http://bulletphysics.org/) that supports soft bodies.

MaxH
07-21-2011, 10:14 AM
First cut is to simply scale the sphere by different amounts in each direction. If that's not good enough, you're going to have to get fancy.