Difference between revisions of "Body:destroy"

m (1 revision: Imported docs from potato.)
(Slightly different wording for the current version.)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
Explicitly destroys the Body and all fixtures and joints attached to it.
  
 +
An error will occur if you attempt to use the object after calling this function. In 0.7.2, when you don't have time to wait for garbage collection, this function may be used to free the object immediately.
  
 
== Function ==
 
== Function ==
Line 13: Line 15:
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Explicitly destroys the Body.}}
 +
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|Body:destroy}}

Latest revision as of 22:21, 12 April 2012

Explicitly destroys the Body and all fixtures and joints attached to it.

An error will occur if you attempt to use the object after calling this function. In 0.7.2, when you don't have time to wait for garbage collection, this function may be used to free the object immediately.

Function

Synopsis

Body:destroy( )

Arguments

None.

Returns

Nothing.

See Also


Other Languages