isDestroyed.lua 564 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Check if the Collider has been destroyed.',
  3. description = 'Returns whether the collider has been destroyed.',
  4. arguments = {},
  5. returns = {
  6. destroyed = {
  7. type = 'boolean',
  8. description = 'Whether the collider has been destroyed.'
  9. }
  10. },
  11. variants = {
  12. {
  13. arguments = {},
  14. returns = { 'destroyed' }
  15. }
  16. },
  17. notes = [[
  18. Calling functions on a collider after destroying it is a bad idea.
  19. ]],
  20. related = {
  21. 'Collider:destroy',
  22. 'World:destroy',
  23. 'Shape:destroy',
  24. 'Joint:destroy'
  25. }
  26. }