Thanks Daniel for your suggestion, I will check the code you mention. 在 2018年6月9日星期六 UTC+8上午1:02:06,Daniel Gillet写道: > > No, it's not possible with the current code. To implement such a feature, > you would need to keep track of the previous position and the current > position of each objects. See function detect_collision in mapcollider.py > on line 236 to see how to detect which side is colliding. There is > calculates the minimum distance to separate the objects. But you could > instead return an object describing which side has collided. >
-- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/cocos-discuss. For more options, visit https://groups.google.com/d/optout.
