Difference between revisions of "Body:destroy"

(Slightly different wording for the current version.)
 
Line 1: Line 1:
Explicitly destroys the Body.
+
Explicitly destroys the Body and all fixtures and joints attached to it.
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
+
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.
if you attempt to use the object after calling this function.
+
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===

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