Difference between revisions of "Shape:setDensity"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Sets the density of a Shape.
 +
Do this before calling [[Body:setMassFromShapes]].
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 13: Line 14:
 
* [[parent::Shape]]
 
* [[parent::Shape]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Sets the density of a Shape.
 +
}}

Revision as of 16:17, 14 February 2010

Sets the density of a Shape. Do this before calling Body:setMassFromShapes.

Function

Synopsis

Shape:setDensity( density )

Arguments

number density
The new density of the Shape.

Returns

Nothing.

See Also