Trees | Index | Help |
|
---|
Module ode :: Class Contact |
|
object
--+
|
Contact
This class represents a contact between two bodies in one point.
A Contact object stores all the input parameters for a ContactJoint. This class wraps the ODE dContact structure which has 3 components:struct dContact { dSurfaceParameters surface; dContactGeom geom; dVector3 fdir1; };This wrapper class provides methods to get and set the items of those structures.
Method Summary | |
---|---|
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
float |
Return the restitution parameter. |
float |
Return the minimum incoming velocity necessary for bounce. |
(pos, normal, depth, geom1, geom2) |
Get the ContactGeom structure of the contact. |
(x, y, z) |
Get the "first friction direction" vector that defines a direction along which frictional force is applied. |
flags |
Return the contact flags. |
float |
Get the surface velocity in friction direction 1. |
float |
Get the surface velocity in friction direction 2. |
float |
Return the Coulomb friction coefficient. |
float |
Return the optional Coulomb friction coefficient for direction 2. |
float |
Get the coefficient of force-dependent-slip (FDS) for friction direction 1. |
float |
Get the coefficient of force-dependent-slip (FDS) for friction direction 2. |
float |
Return the contact normal "softness" parameter. |
float |
Return the contact normal "softness" parameter. |
| |
Set the minimum incoming velocity necessary for bounce. | |
Set the ContactGeom structure of the contact. | |
Set the "first friction direction" vector that defines a direction along which frictional force is applied. | |
Set the contact flags. | |
Set the surface velocity in friction direction 1. | |
Set the surface velocity in friction direction 2. | |
Set the Coulomb friction coefficient. | |
Set the optional Coulomb friction coefficient for direction 2. | |
Set the coefficient of force-dependent-slip (FDS) for friction direction 1. | |
Set the coefficient of force-dependent-slip (FDS) for friction direction 1. | |
Set the contact normal "softness" parameter. | |
Set the contact normal "softness" parameter. | |
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
|
getBounce()Return the restitution parameter.
|
getBounceVel()Return the minimum incoming velocity necessary for bounce.
|
getContactGeomParams()Get the ContactGeom structure of the contact. The return value is a tuple (pos, normal, depth, geom1, geom2) where pos and normal are 3-tuples of floats and depth is a single float. geom1 and geom2 are the Geom objects of the geoms in contact.
|
getFDir1()Get the "first friction direction" vector that defines a direction along which frictional force is applied.
|
getMode()Return the contact flags.
|
getMotion1()Get the surface velocity in friction direction 1.
|
getMotion2()Get the surface velocity in friction direction 2.
|
getMu()Return the Coulomb friction coefficient.
|
getMu2()Return the optional Coulomb friction coefficient for direction 2.
|
getSlip1()Get the coefficient of force-dependent-slip (FDS) for friction direction 1.
|
getSlip2()Get the coefficient of force-dependent-slip (FDS) for friction direction 2.
|
getSoftCFM()Return the contact normal "softness" parameter.
|
getSoftERP()Return the contact normal "softness" parameter.
|
setBounce(b)
|
setBounceVel(bv)Set the minimum incoming velocity necessary for bounce. Incoming velocities below this will effectively have a bounce parameter of 0.
|
setContactGeomParams(pos, normal, depth, geom1=None, geom2=None)Set the ContactGeom structure of the contact.
|
setFDir1(fdir)Set the "first friction direction" vector that defines a direction along which frictional force is applied. It must be of unit length and perpendicular to the contact normal (so it is typically tangential to the contact surface).
|
setMode(flags)Set the contact flags. The argument m is a combination of the ContactXyz flags (ContactMu2, ContactBounce, ...).
|
setMotion1(m)Set the surface velocity in friction direction 1.
|
setMotion2(m)Set the surface velocity in friction direction 2.
|
setMu(mu)Set the Coulomb friction coefficient.
|
setMu2(mu)Set the optional Coulomb friction coefficient for direction 2.
|
setSlip1(s)Set the coefficient of force-dependent-slip (FDS) for friction direction 1.
|
setSlip2(s)Set the coefficient of force-dependent-slip (FDS) for friction direction 1.
|
setSoftCFM(cfm)Set the contact normal "softness" parameter.
|
setSoftERP(erp)Set the contact normal "softness" parameter.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Feb 4 17:54:12 2007 | http://epydoc.sf.net |