setSensor.lua 389 B

123456789101112131415
  1. return {
  2. summary = 'Set the sensor status for the Shape.',
  3. description = [[
  4. Sets whether this Shape is a sensor. Sensors do not trigger any collision response, but they
  5. still report collisions in `World:collide`.
  6. ]],
  7. arguments = {
  8. {
  9. name = 'sensor',
  10. type = 'boolean',
  11. description = 'Whether the Shape should be a sensor.'
  12. }
  13. },
  14. returns = {}
  15. }