Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Collision
  5. OverlapSphere

OverlapSphere

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
  • 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)
Tags
Was this article helpful to you? Yes No

How can we help?