Difference between revisions of "Body:destroy"

m (1 revision: Importing from potato (again).)
(Slightly different wording for the current version.)
 
(2 intermediate revisions by 2 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.
  
Explicitly destroys the Body.
 
When you don't have time to wait for garbage collection, this function
 
may be used to free the object immediately, but note that an error will occur
 
if you attempt to use the object after calling this function.
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 16: Line 15:
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Explicitly destroys the Body.
+
{{#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