Rect2DArrayContainsPoint Example

               
by
Published Jan 26, 2024 at 01:15
Open In Editor


For 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.


Example for ops:
Ops.Team.PipingHotOpenOps_MpGQJP.RectArrayContainsPoint Ops.Team.PipingHotOpenOps_MpGQJP.ScreenPosTo3d_withCamera 

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