[solved] hitTest - best practice

hi all,

what’s the best way to perform a hittest with an irregular shape? like having a racing game, the tracking being transparent, and i want to detect when it’s no longer on track? concave body…

best, dingo [import]uid: 90610 topic_id: 24331 reply_id: 324331[/import]

Sounds like you’re using physics. You can setup multiple shapes per body, so bulid multiple convex shapes. I did that for a game that had a U shaped trap.
[import]uid: 19626 topic_id: 24331 reply_id: 98276[/import]

thanks rob, I solved it with the help of the physics editor. I had troubles with an inner and outher body in the same picture first.

I figured it out, so… lets continue with the game :wink: [import]uid: 90610 topic_id: 24331 reply_id: 98286[/import]