Page 1 of 1

Getting segment info from segment query

Posted: Sun Jun 28, 2015 6:07 pm
by Subself
I want to query against a shape (a box, but it could be any shape, theoretically) and get not just the information available in cpSegmentQueryInfo (https://chipmunk-physics.net/release/Ch ... _info.html) but also find out information on whether or not it hit another segment. That is, if I do a segment query and my segment hits a box shape, I'd like to get info on the face it hit (like the start and end point). Is there an "easy" way to do this?