Scripting

Search The Documentation:

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

makeSimpleDetector

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Make the object into a Kinematic Rigidbody Trigger Collider, which is entirely moved by code but can cause onTriggerEnter and onTriggerExit events with every other collider type.

Parameters:

  • tag (optional)
    • An optional tag to force the collider to use

Example:

1
obj.makeSimpleDetector()
Tags
Was this article helpful to you? Yes No

How can we help?