Filename: tbodyconsole.cc Method: bool tdBody::Create (world) Create Body in World Method: void tdBody::SetPosition (x,y,z) or ("x y z") Set Body's Position Method: const char * tdBody::GetPosition () Get Body's Position Method: void tdBody::SetLinearVel (x,y,z) or ("x y z") Set Body's Linear Velocity Method: const char * tdBody::GetLinearVel () Get Body's Linear Velocity Method: void tdBody::SetAngularVel (x,y,z) or ("x y z") Set Body's Angular Velocity Method: const char * tdBody::GetAngularVel () Get Body's Angular Velocity Method: void tdBody::AddForce (fx,fy,fz) or ("fx fy fz") Add a Force to a Body Method: void tdBody::AddTorque (fx,fy,fz) or ("fx fy fz") Add a Torque to a Body Method: void tdBody::AddRelForce (fx,fy,fz) or ("fx fy fz") Add a Relative Force to a Body Method: void tdBody::AddRelTorque (fx,fy,fz) or ("fx fy fz") Add a Relative Torque to a Body Method: void tdBody::AddForceAtPos (fx,fy,fz,px,py,pz) or ("fx fy fz","px py pz") Add a Force to a Body at a specific Position Method: void tdBody::AddForceAtRelPos (fx,fy,fz,px,py,pz) or ("fx fy fz","px py pz") Add a Force to a Body at a Relative Position Method: void tdBody::AddRelForceAtPos (fx,fy,fz,px,py,pz) or ("fx fy fz","px py pz") Add a Relative Force to a Body at a Position Method: void tdBody::AddRelForceAtRelPos (fx,fy,fz,px,py,pz) or ("fx fy fz","px py pz") Add a Relative Force to a Body at a Relative Position Method: void tdBody::SetForce (x,y,z) or ("x y z") Set Body's Force Method: const char * tdBody::GetForce () Get Body's Force Method: void tdBody::SetTorque (x,y,z) or ("x y z") Set Body's Torque Method: const char * tdBody::GetTorque () Get Body's Torque Method: const char * tdBody::GetRelPointPos (px,py,pz) or ("px py pz") Get Body's Relative Position Method: const char * tdBody::GetRelPointVel (px,py,pz) or ("px py pz") Get Body's Relative Velocity Method: const char * tdBody::GetPosRelPoint (px,py,pz) or ("px py pz") Get Body's Relative Position Method: const char * tdBody::VectorToWorld (px,py,pz) or ("px py pz") Get Body's Vector to World Method: const char * tdBody::VectorFromWorld (px,py,pz) or ("px py pz") Get Body's Vector from World Method: void tdBody::SetFiniteRotationMode (mode) Set a body's finite rotation mode Method: S32 tdBody::GetFiniteRotationMode () Get a body's finite rotation mode Method: void tdBody::SetFiniteRotationAxis (x,y,z) or ("x y z") Set Body's Finite Rotation Axis Method: const char * tdBody::dBodyGetFiniteRotationAxis () Get Body's Finite Rotation Axis Method: void tdBody::Enable () Enable Body Method: void tdBody::Disable () Disable Body Method: S32 tdBody::IsEnabled () See if body is Enabled Method: void tdBody::SetGravityMode (mode) Set a body's gravity mode Method: S32 tdBody::GetGravityMode () Get a body's gravity mode Method: S32 tdBody::GetNumJoints () Get a number of joints on a body Method: void tdBody::SetMass (mass) Set a body's mass Method: S32 tdBody::GetMass () Get a body's mass Method: void tdBody::Damp ([factor]) Damp a body's linear and angular velocity by factor [try -0.02] Method: void tdBody::SetRotation ("9 numbers go here") Set a body's rotation. 3x3 matrix, rows-first Method: void tdBody::SetQuaternion (w,x,y,z) or ("w x y z") Set a body's rotation as a Quaternion Method: const char * tdBody::GetRotation () Get a body's rotation. Returns 3x3 matrix, rows first Method: const char * tdBody::GetQuaternion () Get a body's quaternion, "w x y z". Method: const char * tdBody::GetEulerAngles () Get a body's three euler angles Method: void tdBody::SetAutoDisableLinearThreshold (linear_threshold) Set threshold for Linear disabling Method: F32 tdBody::GetAutoDisableLinearThreshold () Get threshold for Linear disabling Method: void tdBody::SetAutoDisableAngularThreshold (Angular_threshold) Set threshold for Angular disabling Method: F32 tdBody::GetAutoDisableAngularThreshold () Get threshold for Angular disabling Method: void tdBody::SetAutoDisableSteps (steps) Set number of steps for disabling Method: S32 tdBody::GetAutoDisableSteps () Get number of steps for disabling Method: void tdBody::SetAutoDisableTime (time) Set amount of time for disabling Method: F32 tdBody::GetAutoDisableTime () Get amount of time for disabling Method: void tdBody::SetAutoDisableFlag (do_auto_disable) Enable or disable auto disabling Method: S32 tdBody::GetAutoDisableFlag () Check for auto disabling Method: void tdBody::SetAutoDisableDefaults () Set auto disabling defaults on body Method: void tdBody::SetTransform (transform) Set a body's torquish transform Method: const char * tdBody::GetTransform () Get a body's torquish transform Method: void tdBody::SetShape (shapeID) Set the TGE shape that a body should update Method: void tdBody::UpdateShape () Update the transform and velocity of the associated shape Method: void tdBody::SetSceneObject (sceneobjectID) Set the T2D shape that a body should update Method: void tdBody::UpdateSceneObject () Update the transform and velocity of the associated sceneobject Function: S32 CollisionDepth2D (%src, %dst) Depth of collision between two fxSceneObject2Ds Filename: tcontactconsole.cc Method: void tdContact::SetPos (x,y,z) or ("x y z") equivalent of ode dContactGeom.pos Method: void tdContact::SetNormal (x,y,z) or ("x y z") equivalent of ode dContactGeom.normal Method: void tdContact::SetFdir1 (x,y,z) or ("x y z") equivalent of ode dContact.fdir1 Method: void tdContact::SetSurfaceMode (flag, yes) equivalent to setting a flag on dSurfaceParameters.mode Filename: tjointconsole.cc Method: void tdJointGroup::Empty () Empty Joint Group Method: S32 tdJoint::CreateBall (world, group) Create Ball & Socket Joint Method: S32 tdJoint::CreateHinge (world, group) Create Hinge Joint Method: S32 tdJoint::CreateSlider (world, group) Create Slider Joint Method: S32 tdJoint::CreateHinge2 (world, group) Create Hinge2 Joint Method: S32 tdJoint::CreateUniversal (world, group) Create Universal Joint Method: S32 tdJoint::CreateFixed (world, group) Create Fixed Joint Method: S32 tdJoint::CreateContact (world, group, contact) Create Contact Joint Method: S32 tdJoint::CreateNull (world, group) Create Null Joint Method: S32 tdJoint::CreateAMotor (world, group) Create AMotor Joint Method: void tdJoint::Attach (body1, body2) Attach Joint to Bodies Method: S32 tdJoint::GetType () Get Joint Type Method: void tdJoint::SetBallAnchor (x,y,z) or ("x y z") Set Ball Anchor Method: void tdJoint::SetHingeAnchor (x,y,z) or ("x y z") Set Hinge Anchor Method: void tdJoint::SetHingeAxis (x,y,z) or ("x y z") Set Hinge Axis Method: void tdJoint::SetHingeParam (param, value) Set Hinge Parameter Method: void tdJoint::AddHingeTorque (torque) Add Hinge Torque Method: void tdJoint::SetSliderAxis (x,y,z) or ("x y z") Set Slider Axis Method: void tdJoint::SetSliderParam (param, value) Set Slider Parameter Method: void tdJoint::AddSliderForce (force) Add Slider Force Method: void tdJoint::SetHinge2Anchor (x,y,z) or ("x y z") Set Hinge2 Anchor Method: void tdJoint::SetHinge2Axis1 (x,y,z) or ("x y z") Set Hinge2 Axis1 Method: void tdJoint::SetHinge2Axis2 (x,y,z) or ("x y z") Set Hinge2 Axis2 Method: void tdJoint::SetHinge2Param (param, value) Set Hinge2 Parameter Method: void tdJoint::AddHinge2Torques (torque1, torque2) Set Hinge2 Torques Method: void tdJoint::SetUniversalAnchor (x,y,z) or ("x y z") Set Universal Anchor Method: void tdJoint::SetUniversalAxis1 (x,y,z) or ("x y z") Set Universal Axis1 Method: void tdJoint::SetUniversalAxis2 (x,y,z) or ("x y z") Set Universal Axis2 Method: void tdJoint::SetUniversalParam (param, value) Set Universal Parameter Method: void tdJoint::AddUniversalTorques (torque1, torque2) Set Universal Torques Method: void tdJoint::SetFixed () Set Fixed Method: void tdJoint::SetAMotorNumAxes (num) Set Number of Axes on Angular Motor Method: void tdJoint::SetAMotorAxis (anum, rel, x, y, z) or (anum, rel, "x y z") Set Angular Motor Axis Method: void tdJoint::SetAMotorAngle (anum, angle) Set Angular Motor Angle Method: void tdJoint::SetAMotorParam (param, value) Set Angular Motor Parameter Method: void tdJoint::SetAMotorMode (mode) Set Mode on Angular Motor Method: void tdJoint::AddAMotorTorques (torque1, torque2, torque3) Add Torques to Angular Motor Method: const char * tdJoint::GetBallAnchor () Get ball Anchor Method: const char * tdJoint::GetBallAnchor2 () Get ball Anchor2 Method: const char * tdJoint::GetHingeAnchor () Get ball Anchor Method: const char * tdJoint::GetHingeAnchor2 () Get ball Anchor2 Method: const char * tdJoint::GetHingeAxis () Get ball Axis Method: F32 tdJoint::GetHingeParam (param) Get hinge parameter Method: F32 tdJoint::GetHingeAngle () Get hinge angle Method: F32 tdJoint::GetHingeAngleRate () Get Hinge Angle Rate Method: F32 tdJoint::GetSliderPosition () Get Slider Position Method: F32 tdJoint::GetSliderPositionRate () Get Slider Position Rate Method: const char * tdJoint::GetSliderAxis () Get Slider Axis Method: F32 tdJoint::GetSliderParam (param) Get Slider parameter Method: const char * tdJoint::GetHinge2Anchor () Get Hinge2 Anchor Method: const char * tdJoint::GetHinge2Anchor2 () Get Hinge2 Anchor2 Method: const char * tdJoint::GetHinge2Axis1 () Get Hinge2 Axis Method: const char * tdJoint::GetHinge2Axis2 () Get Hinge2 Axis2 Method: F32 tdJoint::GetHinge2Param (param) Get Hinge2 parameter Method: F32 tdJoint::GetHinge2Angle1 () Get Hinge2 angle1 Method: F32 tdJoint::GetHinge2Angle1Rate () Get Hinge2 angle1Rate Method: F32 tdJoint::GetHinge2Angle2Rate () Get Hinge2 angle2Rate Method: const char * tdJoint::GetUniversalAnchor () Get Universal Anchor Method: const char * tdJoint::GetUniversalAnchor2 () Get Universal Anchor2 Method: const char * tdJoint::GetUniversalAxis1 () Get Universal Axis1 Method: const char * tdJoint::GetUniversalAxis2 () Get Universal Axis2 Method: F32 tdJoint::GetUniversalParam (param) Get Universal parameter Method: F32 tdJoint::GetUniversalAngle1 () Get Universal angle1 Method: F32 tdJoint::GetUniversalAngle2 () Get Universal angle2 Method: F32 tdJoint::GetUniversalAngle1Rate () Get Universal angle1Rate Method: F32 tdJoint::GetUniversalAngle2Rate () Get Universal angle2Rate Method: S32 tdJoint::GetAMotorNumAxes () Get number of axes on Angular Motor Method: const char * tdJoint::GetAMotorAxis (anum) Get Angular Motor Axis Method: S32 tdJoint::GetAMotorAxisRel (anum) Get Angular Motor Axis Method: F32 tdJoint::GetAMotorAngle (anum) Get Angular Motor Axis Method: F32 tdJoint::GetAMotorAngleRate (anum) Get Angular Motor Axis Rate Method: F32 tdJoint::GetAMotorParam (param) Get Angular Motor Parameter Method: S32 tdJoint::dJointGetAMotorMode (anum) Get Angular Motor Mode Method: S32 tdJoint::GetBody (index) Get a body attached to joint Function: S32 BodiesAreConnected (body1, body2) See if two Bodies are connected Function: S32 BodiesAreConnectedExcluding (body1, body2, joint_type) See if two Bodies are connected Filename: tmassconsole.cc Method: void tdMass::SetZero () Initialise Mass to Zero Method: void tdMass::SetSphere (density, radius) Define the mass to be a sphere Method: void tdMass::SetSphereTotal (total_mass, radius) Define the mass to be a sphere Method: void tdMass::SetCappedCylinder (density, direction, radius, length) Define mass to be a capped cylinder Method: void tdMass::SetCappedCylinderTotal (total_mass, direction, radius, length) Define mass to be a capped cylinder Method: void tdMass::SetCylinder (density, direction, radius, length) Define mass to be a cylinder Method: void tdMass::SetCylinderTotal (total_mass, direction, radius, length) Define mass to be a cylinder Method: void tdMass::SetBox (density, lx, ly, lz) or (density, "lx ly lz") Define mass to be a box Method: void tdMass::SetBoxTotal (total_mass, lx, ly, lz) or (total_mass, "lx ly lz") Define mass to be a box Method: void tdMass::Adjust (newmass) Adjust mass Method: void tdMass::Translate (x, y, z) or ("x y z") Move Mass Method: void tdMass::SetParameters (themass, cgx, cgy, cgz, I11, I22, I33, I12, I13, I23) Set parameters on the mass Filename: tworldconsole.cc Method: void tdWorld::SetWorldToTorque () Set the world to be the one in use in the rest of Torque Method: void tdWorld::SetGravity (x, y, z) or ("x y z") Set Gravtiy in World Method: void tdWorld::SetProcessTick (yes) Set World to automatically tick ever 32ms Method: const char* tdWorld::GetGravity () Get Gravtiy in World Method: void tdWorld::SetERP (erp) Set World Error Reduction Parameter Method: F32 tdWorld::GetERP () Get World Error Reduction Parameter Method: void tdWorld::SetCFM (cfm) Set World Constraint Force Mixing Method: F32 tdWorld::GetCFM () Get World Constraint Force Mixing Method: void tdWorld::Step ([stepsize]) Step [try 0.1] Method: void tdWorld::QuickStep ([stepsize]) QuickStep [try 0.1] Method: void tdWorld::SetQuickStepNumIterations (num) Set Quick Step Num Iterations Method: S32 tdWorld::GetQuickStepNumIterations () Get Quick Step Num Iterations Method: void tdWorld::SetQuickStepW (param) Set Quick Step W Method: F32 tdWorld::GetQuickStepW () Get Quick Step W Method: void tdWorld::SetContactMaxCorrectingVel (vel) Set Max Correcting Velocity Method: F32 tdWorld::GetContactMaxCorrectingVel () Get Max Correcting Velocity Method: void tdWorld::SetContactSurfaceLayer (depth) Set Contact Surface Layer Method: F32 tdWorld::GetContactSurfaceLayer () Get Contact Surface Layer Method: void tdWorld::StepFast1 (stepsize, maxiterations) StepFast1 Method: void tdWorld::SetAutoEnableDepthSF1 (autoEnableDepth) Set Auto Enable Depth for StepFast1 Method: S32 tdWorld::GetAutoEnableDepthSF1 () Get Auto Enable Depth for StepFast1 Method: const char * tdWorld::ImpulseToForce (stepsize, ix, iy, iz) or (stepsize, "ix iy iz") Work out force neccesary to apply an impulse Method: void tdWorld::SetAutoDisableLinearThreshold (linear_threshold) Set threshold for Linear disabling Method: F32 tdWorld::GetAutoDisableLinearThreshold () Get threshold for Linear disabling Method: void tdWorld::SetAutoDisableAngularThreshold (Angular_threshold) Set threshold for Angular disabling Method: F32 tdWorld::GetAutoDisableAngularThreshold () Get threshold for Angular disabling Method: void tdWorld::SetAutoDisableSteps (steps) Set number of steps for disabling Method: S32 tdWorld::GetAutoDisableSteps () Get number of steps for disabling Method: void tdWorld::SetAutoDisableTime (time) Set amount of time for disabling Method: F32 tdWorld::GetAutoDisableTime () Get amount of time for disabling Method: void tdWorld::SetAutoDisableFlag (do_auto_disable) Enable or disable auto disabling Method: S32 tdWorld::GetAutoDisableFlag () Check for auto disabling