Rect2DArrayContainsPoint Example
Rect2DArrayContainsPoint Example by tobyk #rectangle #intersection #hittestRect2DArrayContainsPoint Example by tobyk https://cables.gl/p/qaPn1R #rectangle #intersection #hittestRect2DArrayContainsPoint Example by tobyk https://cables.gl/p/qaPn1R #rectangle #intersection #hittestFor 2d interactions in world space. Returns if any aligned (non-rotated) rectangles in an array contain a point. Note has an orbit camera, try panning and zooming with mouse wheel.
The advantage of this approach over the full raycast workflow is that it can be faster on mobile when you only need 2D intersections.
Licence: Public Domain Dedication
Commercial use ok, freely remix, reuse this work without restriction, please credit the author.More patches made by cables users
what is cables?
Cables is a tool for creating beautiful interactive content. With an easy to navigate interface and real time visuals, it allows for rapid prototyping and fast adjustments.
cables is free to use!
Register