Difference between revisions of "Body:setMassFromShapes"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 +
Sets mass properties from attatched shapes.
 +
 +
If you feel that finding the correct mass properties is tricky, then this function may be able to help you. After creating the needed shapes on the Body, a call to this function will set the mass properties based on those shapes. Remember to call this function after adding the shapes.
 +
 +
 +
Setting the mass properties this way always results in a realistic (or at least good-looking) simulation, so using it is highly recommended.
  
 
== Function ==
 
== Function ==
Line 13: Line 19:
 
* [[parent::Body]]
 
* [[parent::Body]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Sets mass properties from attatched shapes.
 +
}}

Revision as of 16:17, 14 February 2010

Sets mass properties from attatched shapes.

If you feel that finding the correct mass properties is tricky, then this function may be able to help you. After creating the needed shapes on the Body, a call to this function will set the mass properties based on those shapes. Remember to call this function after adding the shapes.


Setting the mass properties this way always results in a realistic (or at least good-looking) simulation, so using it is highly recommended.

Function

Synopsis

Body:setMassFromShapes( )

Arguments

None.

Returns

Nothing.

See Also