pymunk icon indicating copy to clipboard operation
pymunk copied to clipboard

Getting issue when two objects at the same place

Open RocketRoad opened this issue 5 years ago • 5 comments

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?

RocketRoad avatar Dec 26 '18 04:12 RocketRoad

Ok. I figured out that it was due to spring with rest length 0

RocketRoad avatar Dec 26 '18 05:12 RocketRoad

Ok, great. Then Ill close this one.

viblo avatar Dec 27 '18 16:12 viblo

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?

RocketRoad avatar Dec 27 '18 16:12 RocketRoad

Ah, sorry. Let me reopen this again. I dont have a quick answer right now.

viblo avatar Dec 27 '18 21:12 viblo

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

RocketRoad avatar Dec 30 '18 23:12 RocketRoad