Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Math
  5. checkSphereTouch

checkSphereTouch

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Check if two mathematical spheres intersect (1), touch (0), or are not touching at all (-1)

Parameters:

  • posA
    • A string value
  • sizeA
    • A float value
  • posB
    • A string value
  • sizeB
    • A float value

returns an Integer (whole number) value

Example:

1
obj.checkSphereTouch(posA, sizeA, posB, sizeB)
Tags
Was this article helpful to you? Yes No

How can we help?