isSensor.lua 379 B

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