[Python] Pymunk body rotation and pressing on a variable surface

Discussão em 'Python' iniciado por Stack, Junho 11, 2025.

  1. Stack

    Stack Membro Participativo

    I’m trying to simulate a grinding simulation where I have a part which has a simple motor without a pivot joint and during the simulation I am applying a force on the part to keep it on a complex shape. When the grinding wheel touches it I set a callback to update the vertices of the part shape thus removing material (in the callback the moment of inertia and mass is updated from the new shape). The issue is that the part has a very unstable rotation on the shape and I would like to know if there is a solution for this type of kinematic problem.

    Thank you in advance!

    Continue reading...

Compartilhe esta Página