isSensor.lua 448 B

1234567891011121314151617181920
  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. sensor = {
  10. type = 'boolean',
  11. description = 'Whether the Shape is a sensor.'
  12. }
  13. },
  14. variants = {
  15. {
  16. arguments = {},
  17. returns = { 'sensor' }
  18. }
  19. }
  20. }