Getting segment info from segment query

Official forum for the Chipmunk2D Physics Library.
Post Reply
Subself
Posts: 1
Joined: Sun Jun 28, 2015 6:04 pm
Contact:

Getting segment info from segment query

Post 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?
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 38 guests