@@ -13,6 +13,7 @@ return {
Calling functions on the collider after destroying it is a bad idea.
]],
related = {
+ 'Collider:isDestroyed',
'World:destroy',
'Shape:destroy',
'Joint:destroy'
@@ -0,0 +1,26 @@
+return {
+ summary = 'Check if the Collider has been destroyed.',
+ description = 'Returns whether the collider has been destroyed.',
+ arguments = {},
+ returns = {
+ destroyed = {
+ type = 'boolean',
+ description = 'Whether the collider has been destroyed.'
+ }
+ },
+ variants = {
+ {
+ returns = { 'destroyed' }
+ notes = [[
+ Calling functions on a collider after destroying it is a bad idea.
+ ]],
+ related = {
+ 'Collider:destroy',
+ 'World:destroy',
+ 'Shape:destroy',
+ 'Joint:destroy'
+}