Looking for a solver that acts like bending metal?

ouch67
Posts: 17
Joined: Tue Jul 26, 2011 9:24 pm

Looking for a solver that acts like bending metal?

Post by ouch67 »

is there one?

What I mean is that if you took 2 spheres, where one was a ball bearing and the other was hollow sheet metal and you dropped the ball bearing on the sheet metal one their would be a dent in the sheet metal one. does something like this exist in bullet?

I see gimpact is supposed to have deformable meshes but I couldn't find any function that actually does that. Plus the collision physics of gimpact models are quite bizarre at the moment anyway.

I played with soft meshes trying to get the results I needed but it doesn't seem to be possible with them.
mi076
Posts: 144
Joined: Fri Aug 01, 2008 6:36 am
Location: Bonn, Germany

Re: Looking for a solver that acts like bending metal?

Post by mi076 »

played with gimpact / deformation ...
see small demo
http://game-ws.googlecode.com/files/deform_r774.7z.exe
for source code look at this one, it is the same, but smaller
http://game-ws.googlecode.com/files/Hit ... emo_1.0.7z
Last edited by mi076 on Wed Jul 27, 2011 4:19 am, edited 1 time in total.
ouch67
Posts: 17
Joined: Tue Jul 26, 2011 9:24 pm

Re: Looking for a solver that acts like bending metal?

Post by ouch67 »

Yes I saw that but in your source code version nothing actually deforms... So did you add something to bullet to do that or am I missing something?
mi076
Posts: 144
Joined: Fri Aug 01, 2008 6:36 am
Location: Bonn, Germany

Re: Looking for a solver that acts like bending metal?

Post by mi076 »

look for #ifdef TEST_DEFORM in HitTriangleDemo.cpp, ... access the array, modify vertices and call postUpdate()...
ouch67
Posts: 17
Joined: Tue Jul 26, 2011 9:24 pm

Re: Looking for a solver that acts like bending metal?

Post by ouch67 »

ah ok, thanks!