I've been modifying some vertices of a polygon while the simulation is running.
And it's obvious that "just modifying" them does not work perfectly.
It appears that the bounding box of the body does not automatically change.
It also appears that if the new polygon gets outside of the bounding box (or is it shape proxy?) of the original polygon the part of the new polygon inside the bounding box behaves correct. And the part sticking out of the bounding box just does not collide with other objects.
The part of the polygon that is inside the bounding box collides correct just in some cases.
What is the right way of doing this ?
Is there a way to correct (reinitialize) the polygon after you change it's shape ?
(i would be glad even if with some penalties such ass loosing momentum or smth. else)
Or is this kind of use totally not recommended ?
Thx, Tudor
And it's obvious that "just modifying" them does not work perfectly.
It appears that the bounding box of the body does not automatically change.
It also appears that if the new polygon gets outside of the bounding box (or is it shape proxy?) of the original polygon the part of the new polygon inside the bounding box behaves correct. And the part sticking out of the bounding box just does not collide with other objects.
The part of the polygon that is inside the bounding box collides correct just in some cases.
What is the right way of doing this ?
Is there a way to correct (reinitialize) the polygon after you change it's shape ?
(i would be glad even if with some penalties such ass loosing momentum or smth. else)
Or is this kind of use totally not recommended ?
Thx, Tudor