Scripting

Search The Documentation:

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

inBox

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Check if a 3D point is in a vertical (non-rotated) box

Parameters:

  • pos
    • A string value
  • boxPos
    • A string value
  • boxWidth
    • A float value
  • boxDepth
    • A float value
  • boxHeight
    • A float value

returns a Boolean (true or false) value

Example:

1
obj.inBox(pos, boxPos, boxWidth, boxDepth, boxHeight)
Tags
Was this article helpful to you? Yes No

How can we help?