Trees | Index | Help |
|
---|
Module ode :: Class World |
|
object
--+
|
World
Dynamics world.
The world object is a container for rigid bodies and joints.
Constructor:World()
Method Summary | |
---|---|
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
float |
Get the default auto-disable angular threshold for newly created bodies. |
bool |
Get the default auto-disable flag for newly created bodies. |
float |
Get the default auto-disable linear threshold for newly created bodies. |
int |
Get the default auto-disable steps for newly created bodies. |
float |
Get the default auto-disable time for newly created bodies. |
float |
Get the global CFM (constraint force mixing) value. |
float |
Get the maximum correcting velocity that contacts are allowed to generate. |
Get the depth of the surface layer around all geometry objects. | |
float |
Get the global ERP value, that controls how much error correction is performed in each time step. |
3-tuple |
Return the world's global gravity vector as a 3-tuple of floats. |
int |
Get the number of iterations that the QuickStep method performs per step. |
3-tuple |
If you want to apply a linear or angular impulse to a rigid body, instead of a force or a torque, then you can use this function to convert the desired impulse into a force/torque vector before calling the dBodyAdd... |
Step the world. | |
Set the default auto-disable angular threshold for newly created bodies. | |
Set the default auto-disable flag for newly created bodies. | |
Set the default auto-disable linear threshold for newly created bodies. | |
Set the default auto-disable steps for newly created bodies. | |
Set the default auto-disable time for newly created bodies. | |
Set the global CFM (constraint force mixing) value. | |
Set the maximum correcting velocity that contacts are allowed to generate. | |
Set the depth of the surface layer around all geometry objects. | |
Set the global ERP value, that controls how much error correction is performed in each time step. | |
Set the world's global gravity vector. | |
Set the number of iterations that the QuickStep method performs per step. | |
Step the world. | |
Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__new__(T, S, ...)T.__new__(S, ...) -> a new object with type S, a subtype of T
|
getAutoDisableAngularThreshold()Get the default auto-disable angular threshold for newly created bodies.
|
getAutoDisableFlag()Get the default auto-disable flag for newly created bodies.
|
getAutoDisableLinearThreshold()Get the default auto-disable linear threshold for newly created bodies.
|
getAutoDisableSteps()Get the default auto-disable steps for newly created bodies.
|
getAutoDisableTime()Get the default auto-disable time for newly created bodies.
|
getCFM()Get the global CFM (constraint force mixing) value. Typical values are in the range 10E-9 - 1. The default is 10E-5 if single precision is being used, or 10E-10 if double precision is being used.
|
getContactMaxCorrectingVel()Get the maximum correcting velocity that contacts are allowed to generate. The default value is infinity (i.e. no limit). Reducing this value can help prevent "popping" of deeply embedded objects.
|
getContactSurfaceLayer()Get the depth of the surface layer around all geometry objects. Contacts are allowed to sink into the surface layer up to the given depth before coming to rest. The default value is zero. Increasing this to some small value (e.g. 0.001) can help prevent jittering problems due to contacts being repeatedly made and broken. |
getERP()Get the global ERP value, that controls how much error correction is performed in each time step. Typical values are in the range 0.1-0.8. The default is 0.2.
|
getGravity()Return the world's global gravity vector as a 3-tuple of floats.
|
getQuickStepNumIterations()Get the number of iterations that the QuickStep method performs per step. More iterations will give a more accurate solution, but will take longer to compute. The default is 20 iterations.
|
impulseToForce(stepsize, impulse)If you want to apply a linear or angular impulse to a rigid body, instead of a force or a torque, then you can use this function to convert the desired impulse into a force/torque vector before calling the dBodyAdd... function.
|
quickStep(stepsize)Step the world. This uses an iterative method that takes time on the order of O(m*N) and memory on the order of O(m), where m is the total number of constraint rows and N is the number of iterations. For large systems this is a lot faster than dWorldStep, but it is less accurate.
|
setAutoDisableAngularThreshold(threshold)Set the default auto-disable angular threshold for newly created bodies.
|
setAutoDisableFlag(flag)Set the default auto-disable flag for newly created bodies.
|
setAutoDisableLinearThreshold(threshold)Set the default auto-disable linear threshold for newly created bodies.
|
setAutoDisableSteps(steps)Set the default auto-disable steps for newly created bodies.
|
setAutoDisableTime(time)Set the default auto-disable time for newly created bodies.
|
setCFM(cfm)Set the global CFM (constraint force mixing) value. Typical values are in the range 10E-9 - 1. The default is 10E-5 if single precision is being used, or 10E-10 if double precision is being used.
|
setContactMaxCorrectingVel(vel)Set the maximum correcting velocity that contacts are allowed to generate. The default value is infinity (i.e. no limit). Reducing this value can help prevent "popping" of deeply embedded objects.
|
setContactSurfaceLayer(depth)Set the depth of the surface layer around all geometry objects. Contacts are allowed to sink into the surface layer up to the given depth before coming to rest. The default value is zero. Increasing this to some small value (e.g. 0.001) can help prevent jittering problems due to contacts being repeatedly made and broken.
|
setERP(erp)Set the global ERP value, that controls how much error correction is performed in each time step. Typical values are in the range 0.1-0.8. The default is 0.2.
|
setGravity(gravity)Set the world's global gravity vector.
|
setQuickStepNumIterations(num)Set the number of iterations that the QuickStep method performs per step. More iterations will give a more accurate solution, but will take longer to compute. The default is 20 iterations.
|
step(stepsize)Step the world. This uses a "big matrix" method that takes time on the order of O(m3) and memory on the order of O(m2), where m is the total number of constraint rows. For large systems this will use a lot of memory and can be very slow, but this is currently the most accurate method.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Feb 4 17:54:12 2007 | http://epydoc.sf.net |