It would be very helpful if the collision manager could also return information on the side of an AABB (or OBB if you implement this) that was hit. Then iter_all_collisions() could give this information back to use in determining which way to bounce, e.g. off the side of a box.
I've implemented a minimal PolyShape Cshape that looks for line overlaps and vertices inside the poly to determine collisions, but have no proper way to return the lines that cross each other in order to give bounce vector information. This is getting closer to Pymunk or Box2d, but would be a useful lightweight feature. Shane -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cocos-discuss?hl=en.
