Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Mesh
  5. boxCollider

boxCollider

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Add or resize a generic box collider with optional X,Y,Z and optional size if we have no collider, default size is 1f

Parameters:

  • moveCenter Optional
    • A boolean value
  • x Optional
    • A float value
  • y Optional
    • A float value
  • z Optional
    • A float value
  • setSize Optional
    • A boolean value
  • width Optional
    • A float value
  • height Optional
    • A float value
  • depth Optional
    • A float value

Example:

1
obj.boxCollider(moveCenter, x, y, z, setSize, width, height, depth)
Tags
Was this article helpful to you? Yes No

How can we help?