| name = "ODEDynamics",
gravity = 9.81, substeps = 1, enabled = True, erp = None, cfm = None, defaultcontactproperties = None, collision_events = False, auto_add = False, show_contacts = False, contactmarkersize = 0.1, contactnormalsize = 1.0, auto_insert = True) |
gravity is the acceleration due to gravity. The direction of the acceleration is in negative "up" direction (as specified by the scene).
substeps is the number of simulation steps per frame. You can increase this value to get a more accurate/stable simulation.
The simulation will only run if enabled is True, otherwise
it's halted.
erp and cfm are the global error reduction parameter and constraint force mixing value to be useed (see the ODE manual).
defaultcontactproperties is a ODEContactProperties object that specifies the default contact parameters. These parameters are used for contacts between two objects (resp. materials) that have not been set explicitly using setContactProperties().
collision_events determines whether the component will generate
ODE_COLLISION events whenever a collision has occured. An event
handler takes a ODECollisionEvent (see section
8.8.3) object as argument.
If auto_add is True the component searches the scene for
rigid bodies and hinges and adds them automatically to the component.
This is done at the time the component is created, so any bodies or
hinges created afterwards will be ignored.
show_contacts determines whether the contact points and normals are visualized or not (this is mainly for debugging purposes). The size of the contact point markers and the length of the normals can be specified via the contactmarkersize and contactnormalsize arguments.
| objects, categorybits=None, collidebits=None) |
| ) |
| (mat1, mat2), props) |
| (mat1, mat2)) |
| object) |