pymunk
pymunk copied to clipboard
Getting issue when two objects at the same place
I'm building a system that really needs to put two object at the same place. They are not colliding, in fact the first doesn't even have a shape. How to resolve a problem?
Ok. I figured out that it was due to spring with rest length 0
Ok, great. Then Ill close this one.
But how to solve the issue I mean I can place object at different places but what if their position become same again. I kind of understand why that happens, like spring doesn't have direction to pull or push. But what can I do about Just hope that probability of their position being same equals to zero?
Ah, sorry. Let me reopen this again. I dont have a quick answer right now.
I don't need the answer anymore. Just avoided using such constraint. But probably adding checking for such low probability is probably useless and can significantly affect the speed of execution