setSensor.lua 545 B

123456789101112131415161718192021
  1. return {
  2. summary = 'Set the sensor status for the Shape.',
  3. description = [[
  4. Sets whether this Shape is a sensor. When a Shape is a sensor, it will not generate any
  5. collision response when it collides with things, but collisions can still be detected with
  6. `World:collide` and `World:getContacts`.
  7. ]],
  8. arguments = {
  9. sensor = {
  10. type = 'boolean',
  11. description = 'Whether the Shape should be a sensor.'
  12. }
  13. },
  14. returns = {},
  15. variants = {
  16. {
  17. arguments = { 'sensor' },
  18. returns = {}
  19. }
  20. }
  21. }