Hello,
I am using box2d library and I would like to ask your help. Ech, I am new to this library....
I am struggling to find a solution for bouncing objects, that must change their shape after collision.
I would like to change the shape of the object after it collides with other object:
1 box2d object collide in one moment/frame
2 after collision (according to frames 1,2,3... or slower ) the form of the object changes
3 rectangle becomes 5-gon,6-gon,7-gon,8-gon .... n-gon, and n-gon becomes rectangle.
4 if it bounces at the time when the shape is 8-gon,9-gon .... n-gon the value has to be negative, and the shape gradually is going to be rectangle again.
Do you have any suggestion or similar examples how to make this change?
1