Platform Compatibility
PC | Mac OSX | Oculus Quest |
---|---|---|
X | X | X |
Get a list of indexes of objects we overlap within a sphere
Parameters:
- pos
- A string value for X,Y,Z
- radius
- A float value for how big to make the sphere
- layers
- A string value separated by commas using the Object layers
- hitTriggers Optional
- A boolean value whether we also detect trigger collider overlaps
returns a String (text) value
Example:
1 | obj.OverlapSphere(pos, radius, layers, hitTriggers) |