You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use a GrooveJoint for my use case. My use case is as follows:
I have two bodies - Platform (a polygon or more simply a rectangle) , BoxP . I want to make a groove throughout the polygon surface of Platform and restrict the movement of BoxP due to any forces in the simuation to move only along the groove. Is this possible?
I took a look at GrooveJoint. Unfortunately, pymunk.constraints.GrooveJoint only supports linear slides. Is there a way to achieve this with Pymunk?
The text was updated successfully, but these errors were encountered:
pavanteja295
changed the title
Single sliding grooves along the entire polygon.
Single sliding grooves along the entire polygon
Dec 31, 2024
pavanteja295
changed the title
Single sliding grooves along the entire polygon
Single sliding groove along the entire polygon
Dec 31, 2024
Perhaps you could try to use a single GrooveJoint, but after every update, you calculate Platform's closest edge to BoxP's anchor and set the joint's groove_a and groove_b to match that edge.
Theoretically, at the corners, BoxP could be pushed in enough for the groove to flip, depending on the direction of the force. You could try adjusting error_bias to tune things further.
Hey guys!
I am trying to use a GrooveJoint for my use case. My use case is as follows:
I have two bodies - Platform (a polygon or more simply a rectangle) , BoxP . I want to make a groove throughout the polygon surface of Platform and restrict the movement of BoxP due to any forces in the simuation to move only along the groove. Is this possible?
I took a look at GrooveJoint. Unfortunately,
pymunk.constraints.GrooveJoint
only supports linear slides. Is there a way to achieve this with Pymunk?The text was updated successfully, but these errors were encountered: