Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I'm trying to Pick objects that has overlapping BBoxes. So I would guess Object1.BBoxRight < Object2.BBoxLeft would detect if they were intersecting, but would also pick every other instance of Object1 left of Object2. How do I pick only the intersecting instances using BBox?
Develop games in your browser. Powerful, performant & highly capable.
Found this c++ code that might solve it.
if (RectA.Left < RectB.Right && RectA.Right > RectB.Left &&
RectA.Top < RectB.Bottom && RectA.Bottom > RectB.Top )
Just hope i can translate it to something usable in C2
Solved it. Sharing here in case someone else needs to detect collisions based on the BBox. Great for example on isometric games och if you need to detect collisions other than the collision polygon.