|
jsode
jsode module
doc If something seems wrong or incomplete, please enter a comment at the bottom of this page. jsode modulejsode is a module that manages support to ODE. ODE is an open source, high performance library for simulating rigid body dynamics. It is fully featured, stable, mature and platform independent with an easy to use C/C++ API. It has advanced joint types and integrated collision detection with friction. ODE is useful for simulating vehicles, objects in virtual reality environments and virtual creatures. It is currently used in many computer games, 3D authoring tools and simulation tools.
class jsode::Worldconstructorconstructor()dWorldCreate MethodsDestroyDestroy()TBD StepStep( time [, iterations] ) Propertiesgravityvec3 gravityGets or sets the gravity vector for a given world. realreal ERPdWorldGetERP
dWorldGetCFM
dWorldGetContactSurfaceLayer envBody env ???
This defines the default properties of the colliding grometries surfaces.
This is the default space object that is bound to the world. class jsode::Bodyconstructorconstructor( world )TBD MethodsDestroyvoid Destroy()TBD dBodyDestroy IsConnectedToboolean IsConnectedTo( body )TBD dAreConnected Propertiesvectorvec3 positiondBodySetPosition
dBodySetQuaternion
dBodySetLinearVel
dBodySetAngularVel
dBodySetForce
dBodySetTorque massmass Native Interface
Is the current body's position. class jsode::GeomMethodsDestroy
dGeomSetData NULL, dGeomDestroy Propertiesenableboolean enableIs the status of the geometry. bodybody bodyBind the current geometry to the given body object. offset
Sets the position and rotation of the geometry to its center of mass. tansformation
Sets the position and rotation of the geometry to its center of mass. positionvec3 positionIs the current position of the geometry. Callback functions
This function is called each time two geometries collide together. index is the index of the collision between step and step+1. Native Interface
Is the current geometry's position. class jsode::GeomBoxjsode::Geomconstructorconstructor( space )TBD Propertieslengthsvec3 lengthsIs the x, y, z size of the box. class jsode::GeomCapsulejsode::Geomconstructorconstructor( space )TBD Propertiesradiusreal radiusTBD lengthreal lengthIs the length of the capsule. class jsode::GeomPlanejsode::Geomconstructorconstructor( space )TBD class jsode::GeomRayjsode::Geomconstructorconstructor( space )TBD lengthreal lengthTBD startvec3 startTBD directionvec3 directionTBD class jsode::GeomSpherejsode::Geomconstructorconstructor( space )TBD Propertiesradiusreal radius class jsode::GeomTrimeshjsode::Geomconstructorconstructor( space )TBD class jsode::JointMethodsDestroyDestroy()TBD Propertiesbody1Body body1Set the first body of the joint. body2Body body2Set the second body of the joint. useFeedbackboolean useFeedbackSet to true activates the feedback, and ALSE to desactivates it. feedbackVectorvec3 body1ForceIs the current force vector that applies to the body1 if feedback is activated.
Is the current torque vector that applies to the body1 if feedback is activated.
Is the current force vector that applies to the body2 if feedback is activated.
Is the current torque vector that applies to the body2 if feedback is activated. jointParamreal loStop
class jsode::JointBalljsode::Jointconstructorconstructor( world ) Propertiesanchorvec3 anchor anchor2vec3 anchor2 class jsode::JointFixedjsode::Jointconstructorconstructor( world ) MethodsSetSet()Set the current position of body1 and body2 as fixed. class jsode::JointHingejsode::JointMethodsconstructorconstructor( world )TBD AddTorquevoid AddTorque( torque )TBD Propertiesanchorvec3 anchorTBD anchor2vec3 anchor2 axisvec3 axisGet or set the axis of the joint. anglereal angle angleRatereal angleRate class jsode::JointPlanejsode::Jointconstructorconstructor( world )TBD class jsode::JointSliderjsode::Jointconstructorconstructor( world )TBD Propertiesaxisvec3 axisTBD positionreal position positionRatereal positionRate class jsode::MassMethodsTranslatevoid Translate( vec3 )TBD dMassTranslate + dBodySetMass Adjustvoid Adjust( mass )TBD dBodyGetMass, dMassAdjust, dBodySetMass SetZerovoid SetZero()TBD dBodyGetMass, dMassSetZero, dBodySetMass SetBoxTotalSetBoxTotal( mass, vec3 )TBD dBodyGetMass, dMassSetBoxTotal, dBodySetMass Propertiesvaluereal valueTBD dBodyGetMass, dBodySetMass centervec3 centerTBD dBodyGetMass, dBodySetMass get/set a vec3 class jsode::Spaceconstructorconstructor( parentSpace ) class jsode::SurfaceParametersconstructorconstructor() Propertiessurface
Coulomb friction coefficient. This must be in the range 0 to dInfinity. 0 results in a frictionless contact, and dInfinity results in a contact that never slips. Note that frictionless contacts are less time consuming to compute than ones with friction, and infinite friction contacts can be cheaper than contacts with finite friction. This must always be set.
Optional Coulomb friction coefficient for friction direction 2 (0..dInfinity).
Restitution parameter (0..1). 0 means the surfaces are not bouncy at all, 1 is maximum bouncyness.
The minimum incoming velocity necessary for bounce. Incoming velocities below this will effectively have a bounce parameter of 0.
Contact normal "softness" parameter.
Contact normal "softness" parameter.
Surface velocity in friction directions 1 and 2 and along the normal.
The coefficients of force-dependent-slip (FDS) for friction directions 1 and 2.
|
► Sign in to add a comment