Class | ODE::ParameterizedJoint |
In: |
ext/body.c
(CVS)
|
Parent: | ODE::Joint |
ODE::ParamJoint#CFM() — Get the constraint force mixing (CFM) value used when not at a stop.
/* * ODE::ParamJoint#CFM() * -- * Get the constraint force mixing (CFM) value used when not at a stop. */ static VALUE ode_paramJoint_CFM( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamCFM + ode_axis_offset(self)) ); }
ODE::ParamJoint#CFM() — Get the constraint force mixing (CFM) value used when not at a stop.
/* * ODE::ParamJoint#CFM() * -- * Get the constraint force mixing (CFM) value used when not at a stop. */ static VALUE ode_paramJoint_CFM( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamCFM + ode_axis_offset(self)) ); }
ODE::ParamJoint#CFM=( value ) — Set the constraint force mixing (CFM) value used when not at a stop.
/* * ODE::ParamJoint#CFM=( value ) * -- * Set the constraint force mixing (CFM) value used when not at a stop. */ static VALUE ode_paramJoint_CFM_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0.0, 1.0 ); (setParam)( ptr->id, dParamCFM + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_CFM( self ); }
ODE::ParamJoint#CFM() — Get the constraint force mixing (CFM) value used when not at a stop.
/* * ODE::ParamJoint#CFM() * -- * Get the constraint force mixing (CFM) value used when not at a stop. */ static VALUE ode_paramJoint_CFM( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamCFM + ode_axis_offset(self)) ); }
ODE::ParamJoint#CFM=( value ) — Set the constraint force mixing (CFM) value used when not at a stop.
/* * ODE::ParamJoint#CFM=( value ) * -- * Set the constraint force mixing (CFM) value used when not at a stop. */ static VALUE ode_paramJoint_CFM_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0.0, 1.0 ); (setParam)( ptr->id, dParamCFM + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_CFM( self ); }
ODE::ParamJoint#CFM=( value ) — Set the constraint force mixing (CFM) value used when not at a stop.
/* * ODE::ParamJoint#CFM=( value ) * -- * Set the constraint force mixing (CFM) value used when not at a stop. */ static VALUE ode_paramJoint_CFM_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0.0, 1.0 ); (setParam)( ptr->id, dParamCFM + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_CFM( self ); }
ODE::ParamJoint#bounce() — Get the elasticity of the stops as the coefficient of restitution, which will be a value between 0 and 1, inclusive. 0 means the stops are not elastic at all; 1 is perfect elasticity.
/* * ODE::ParamJoint#bounce() * -- * Get the elasticity of the stops as the coefficient of restitution, which will * be a value between 0 and 1, inclusive. 0 means the stops are not elastic at * all; 1 is perfect elasticity. */ static VALUE ode_paramJoint_Bounce( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamBounce + ode_axis_offset(self)) ); }
ODE::ParamJoint#bounce() — Get the elasticity of the stops as the coefficient of restitution, which will be a value between 0 and 1, inclusive. 0 means the stops are not elastic at all; 1 is perfect elasticity.
/* * ODE::ParamJoint#bounce() * -- * Get the elasticity of the stops as the coefficient of restitution, which will * be a value between 0 and 1, inclusive. 0 means the stops are not elastic at * all; 1 is perfect elasticity. */ static VALUE ode_paramJoint_Bounce( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamBounce + ode_axis_offset(self)) ); }
ODE::ParamJoint#bounce=( value ) — Set the elasticity of the stops as the coefficient of restitution, which will be a value between 0 and 1, inclusive. 0 means the stops are not elastic at all; 1 is perfect elasticity.
/* * ODE::ParamJoint#bounce=( value ) * -- * Set the elasticity of the stops as the coefficient of restitution, which will * be a value between 0 and 1, inclusive. 0 means the stops are not elastic at * all; 1 is perfect elasticity. */ static VALUE ode_paramJoint_Bounce_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamBounce + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_Bounce( self ); }
ODE::ParamJoint#bounce() — Get the elasticity of the stops as the coefficient of restitution, which will be a value between 0 and 1, inclusive. 0 means the stops are not elastic at all; 1 is perfect elasticity.
/* * ODE::ParamJoint#bounce() * -- * Get the elasticity of the stops as the coefficient of restitution, which will * be a value between 0 and 1, inclusive. 0 means the stops are not elastic at * all; 1 is perfect elasticity. */ static VALUE ode_paramJoint_Bounce( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamBounce + ode_axis_offset(self)) ); }
ODE::ParamJoint#bounce=( value ) — Set the elasticity of the stops as the coefficient of restitution, which will be a value between 0 and 1, inclusive. 0 means the stops are not elastic at all; 1 is perfect elasticity.
/* * ODE::ParamJoint#bounce=( value ) * -- * Set the elasticity of the stops as the coefficient of restitution, which will * be a value between 0 and 1, inclusive. 0 means the stops are not elastic at * all; 1 is perfect elasticity. */ static VALUE ode_paramJoint_Bounce_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamBounce + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_Bounce( self ); }
ODE::ParamJoint#bounce=( value ) — Set the elasticity of the stops as the coefficient of restitution, which will be a value between 0 and 1, inclusive. 0 means the stops are not elastic at all; 1 is perfect elasticity.
/* * ODE::ParamJoint#bounce=( value ) * -- * Set the elasticity of the stops as the coefficient of restitution, which will * be a value between 0 and 1, inclusive. 0 means the stops are not elastic at * all; 1 is perfect elasticity. */ static VALUE ode_paramJoint_Bounce_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamBounce + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_Bounce( self ); }
ODE::ParamJoint#fMax() — Get the maximum force or torque that the motor will use to achieve the desired velocity.
/* * ODE::ParamJoint#fMax() * -- * Get the maximum force or torque that the motor will use to achieve the * desired velocity. */ static VALUE ode_paramJoint_FMax( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamFMax + ode_axis_offset(self)) ); }
ODE::ParamJoint#fMax() — Get the maximum force or torque that the motor will use to achieve the desired velocity.
/* * ODE::ParamJoint#fMax() * -- * Get the maximum force or torque that the motor will use to achieve the * desired velocity. */ static VALUE ode_paramJoint_FMax( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamFMax + ode_axis_offset(self)) ); }
ODE::ParamJoint#fMax=( value ) — Set the maximum force or torque that the motor will use to achieve the desired velocity. This must always be greater than or equal to zero. Setting this to zero (the default value) turns off the motor.
/* * ODE::ParamJoint#fMax=( value ) * -- * Set the maximum force or torque that the motor will use to achieve the * desired velocity. This must always be greater than or equal to zero. Setting * this to zero (the default value) turns off the motor. */ static VALUE ode_paramJoint_FMax_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckPositiveNumber( NUM2DBL(value), "value" ); (setParam)( ptr->id, dParamFMax + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_FMax( self ); }
ODE::ParamJoint#fMax() — Get the maximum force or torque that the motor will use to achieve the desired velocity.
/* * ODE::ParamJoint#fMax() * -- * Get the maximum force or torque that the motor will use to achieve the * desired velocity. */ static VALUE ode_paramJoint_FMax( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamFMax + ode_axis_offset(self)) ); }
ODE::ParamJoint#fMax=( value ) — Set the maximum force or torque that the motor will use to achieve the desired velocity. This must always be greater than or equal to zero. Setting this to zero (the default value) turns off the motor.
/* * ODE::ParamJoint#fMax=( value ) * -- * Set the maximum force or torque that the motor will use to achieve the * desired velocity. This must always be greater than or equal to zero. Setting * this to zero (the default value) turns off the motor. */ static VALUE ode_paramJoint_FMax_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckPositiveNumber( NUM2DBL(value), "value" ); (setParam)( ptr->id, dParamFMax + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_FMax( self ); }
ODE::ParamJoint#fMax=( value ) — Set the maximum force or torque that the motor will use to achieve the desired velocity. This must always be greater than or equal to zero. Setting this to zero (the default value) turns off the motor.
/* * ODE::ParamJoint#fMax=( value ) * -- * Set the maximum force or torque that the motor will use to achieve the * desired velocity. This must always be greater than or equal to zero. Setting * this to zero (the default value) turns off the motor. */ static VALUE ode_paramJoint_FMax_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckPositiveNumber( NUM2DBL(value), "value" ); (setParam)( ptr->id, dParamFMax + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_FMax( self ); }
ODE::ParamJoint#fudgeFactor() — Get the current joint stop/motor fudge factor. See the ODE docs for more on what this is.
/* * ODE::ParamJoint#fudgeFactor() * -- * Get the current joint stop/motor fudge factor. See the ODE docs for more on * what this is. */ static VALUE ode_paramJoint_FudgeFactor( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamFudgeFactor + ode_axis_offset(self)) ); }
ODE::ParamJoint#fudgeFactor() — Get the current joint stop/motor fudge factor. See the ODE docs for more on what this is.
/* * ODE::ParamJoint#fudgeFactor() * -- * Get the current joint stop/motor fudge factor. See the ODE docs for more on * what this is. */ static VALUE ode_paramJoint_FudgeFactor( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamFudgeFactor + ode_axis_offset(self)) ); }
ODE::ParamJoint#fudgeFactor=( factor ) — Set the joint/motor fudge factor.
/* * ODE::ParamJoint#fudgeFactor=( factor ) * -- * Set the joint/motor fudge factor. */ static VALUE ode_paramJoint_FudgeFactor_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamFudgeFactor + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_FudgeFactor( self ); }
ODE::ParamJoint#fudgeFactor() — Get the current joint stop/motor fudge factor. See the ODE docs for more on what this is.
/* * ODE::ParamJoint#fudgeFactor() * -- * Get the current joint stop/motor fudge factor. See the ODE docs for more on * what this is. */ static VALUE ode_paramJoint_FudgeFactor( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamFudgeFactor + ode_axis_offset(self)) ); }
ODE::ParamJoint#fudgeFactor=( factor ) — Set the joint/motor fudge factor.
/* * ODE::ParamJoint#fudgeFactor=( factor ) * -- * Set the joint/motor fudge factor. */ static VALUE ode_paramJoint_FudgeFactor_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamFudgeFactor + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_FudgeFactor( self ); }
ODE::ParamJoint#fudgeFactor=( factor ) — Set the joint/motor fudge factor.
/* * ODE::ParamJoint#fudgeFactor=( factor ) * -- * Set the joint/motor fudge factor. */ static VALUE ode_paramJoint_FudgeFactor_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamFudgeFactor + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_FudgeFactor( self ); }
ODE::ParamJoint#hiStop() — Get the high stop angle or position.
/* * ODE::ParamJoint#hiStop() * -- * Get the high stop angle or position. */ static VALUE ode_paramJoint_HiStop( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamHiStop + ode_axis_offset(self)) ); }
ODE::ParamJoint#hiStop() — Get the high stop angle or position.
/* * ODE::ParamJoint#hiStop() * -- * Get the high stop angle or position. */ static VALUE ode_paramJoint_HiStop( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamHiStop + ode_axis_offset(self)) ); }
ODE::ParamJoint#hiStop=( value ) — Set the high stop angle or position. Setting this to dInfinity (the default value) turns off the high stop. For rotational joints, this stop must be less than Pi to be effective. If the high stop is less than the low stop then both stops will be ineffective.
/* * ODE::ParamJoint#hiStop=( value ) * -- * Set the high stop angle or position. Setting this to dInfinity (the default * value) turns off the high stop. For rotational joints, this stop must be less * than Pi to be effective. If the high stop is less than the low stop then both * stops will be ineffective. */ static VALUE ode_paramJoint_HiStop_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); (setParam)( ptr->id, dParamHiStop + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_HiStop( self ); }
ODE::ParamJoint#hiStop() — Get the high stop angle or position.
/* * ODE::ParamJoint#hiStop() * -- * Get the high stop angle or position. */ static VALUE ode_paramJoint_HiStop( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamHiStop + ode_axis_offset(self)) ); }
ODE::ParamJoint#hiStop=( value ) — Set the high stop angle or position. Setting this to dInfinity (the default value) turns off the high stop. For rotational joints, this stop must be less than Pi to be effective. If the high stop is less than the low stop then both stops will be ineffective.
/* * ODE::ParamJoint#hiStop=( value ) * -- * Set the high stop angle or position. Setting this to dInfinity (the default * value) turns off the high stop. For rotational joints, this stop must be less * than Pi to be effective. If the high stop is less than the low stop then both * stops will be ineffective. */ static VALUE ode_paramJoint_HiStop_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); (setParam)( ptr->id, dParamHiStop + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_HiStop( self ); }
ODE::ParamJoint#hiStop=( value ) — Set the high stop angle or position. Setting this to dInfinity (the default value) turns off the high stop. For rotational joints, this stop must be less than Pi to be effective. If the high stop is less than the low stop then both stops will be ineffective.
/* * ODE::ParamJoint#hiStop=( value ) * -- * Set the high stop angle or position. Setting this to dInfinity (the default * value) turns off the high stop. For rotational joints, this stop must be less * than Pi to be effective. If the high stop is less than the low stop then both * stops will be ineffective. */ static VALUE ode_paramJoint_HiStop_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); (setParam)( ptr->id, dParamHiStop + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_HiStop( self ); }
ODE::ParamJoint#loStop() — Get the low stop angle or position.
/* * ODE::ParamJoint#loStop() * -- * Get the low stop angle or position. */ static VALUE ode_paramJoint_LoStop( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamLoStop + ode_axis_offset(self)) ); }
ODE::ParamJoint#loStop() — Get the low stop angle or position.
/* * ODE::ParamJoint#loStop() * -- * Get the low stop angle or position. */ static VALUE ode_paramJoint_LoStop( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamLoStop + ode_axis_offset(self)) ); }
ODE::ParamJoint#loStop=( value ) — Set the low stop angle or position. Setting this to -dInfinity (the default value) turns off the low stop. For rotational joints, this stop must be greater than -Pi to be effective.
/* * ODE::ParamJoint#loStop=( value ) * -- * Set the low stop angle or position. Setting this to -dInfinity (the default * value) turns off the low stop. For rotational joints, this stop must be * greater than -Pi to be effective. */ static VALUE ode_paramJoint_LoStop_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); (setParam)( ptr->id, dParamLoStop + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_LoStop( self ); }
ODE::ParamJoint#loStop() — Get the low stop angle or position.
/* * ODE::ParamJoint#loStop() * -- * Get the low stop angle or position. */ static VALUE ode_paramJoint_LoStop( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamLoStop + ode_axis_offset(self)) ); }
ODE::ParamJoint#loStop=( value ) — Set the low stop angle or position. Setting this to -dInfinity (the default value) turns off the low stop. For rotational joints, this stop must be greater than -Pi to be effective.
/* * ODE::ParamJoint#loStop=( value ) * -- * Set the low stop angle or position. Setting this to -dInfinity (the default * value) turns off the low stop. For rotational joints, this stop must be * greater than -Pi to be effective. */ static VALUE ode_paramJoint_LoStop_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); (setParam)( ptr->id, dParamLoStop + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_LoStop( self ); }
ODE::ParamJoint#loStop=( value ) — Set the low stop angle or position. Setting this to -dInfinity (the default value) turns off the low stop. For rotational joints, this stop must be greater than -Pi to be effective.
/* * ODE::ParamJoint#loStop=( value ) * -- * Set the low stop angle or position. Setting this to -dInfinity (the default * value) turns off the low stop. For rotational joints, this stop must be * greater than -Pi to be effective. */ static VALUE ode_paramJoint_LoStop_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); (setParam)( ptr->id, dParamLoStop + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_LoStop( self ); }
ODE::ParamJoint#stopCFM() — Get constraint force mixing (CFM) value used by the stops.
/* * ODE::ParamJoint#stopCFM() * -- * Get constraint force mixing (CFM) value used by the stops. */ static VALUE ode_paramJoint_StopCFM( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamStopCFM + ode_axis_offset(self)) ); }
ODE::ParamJoint#stopCFM() — Get constraint force mixing (CFM) value used by the stops.
/* * ODE::ParamJoint#stopCFM() * -- * Get constraint force mixing (CFM) value used by the stops. */ static VALUE ode_paramJoint_StopCFM( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamStopCFM + ode_axis_offset(self)) ); }
ODE::ParamJoint#stopCFM=( value ) — Set the constraint force mixing (CFM) value used by the stops. Together with the ERP value this can be used to get spongy or soft stops. Note that this is intended for unpowered joints, it does not really work as expected when a powered joint reaches its limit.
/* * ODE::ParamJoint#stopCFM=( value ) * -- * Set the constraint force mixing (CFM) value used by the stops. Together with * the ERP value this can be used to get spongy or soft stops. Note that this is * intended for unpowered joints, it does not really work as expected when a * powered joint reaches its limit. */ static VALUE ode_paramJoint_StopCFM_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamStopCFM + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_StopCFM( self ); }
ODE::ParamJoint#stopCFM() — Get constraint force mixing (CFM) value used by the stops.
/* * ODE::ParamJoint#stopCFM() * -- * Get constraint force mixing (CFM) value used by the stops. */ static VALUE ode_paramJoint_StopCFM( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamStopCFM + ode_axis_offset(self)) ); }
ODE::ParamJoint#stopCFM=( value ) — Set the constraint force mixing (CFM) value used by the stops. Together with the ERP value this can be used to get spongy or soft stops. Note that this is intended for unpowered joints, it does not really work as expected when a powered joint reaches its limit.
/* * ODE::ParamJoint#stopCFM=( value ) * -- * Set the constraint force mixing (CFM) value used by the stops. Together with * the ERP value this can be used to get spongy or soft stops. Note that this is * intended for unpowered joints, it does not really work as expected when a * powered joint reaches its limit. */ static VALUE ode_paramJoint_StopCFM_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamStopCFM + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_StopCFM( self ); }
ODE::ParamJoint#stopCFM=( value ) — Set the constraint force mixing (CFM) value used by the stops. Together with the ERP value this can be used to get spongy or soft stops. Note that this is intended for unpowered joints, it does not really work as expected when a powered joint reaches its limit.
/* * ODE::ParamJoint#stopCFM=( value ) * -- * Set the constraint force mixing (CFM) value used by the stops. Together with * the ERP value this can be used to get spongy or soft stops. Note that this is * intended for unpowered joints, it does not really work as expected when a * powered joint reaches its limit. */ static VALUE ode_paramJoint_StopCFM_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamStopCFM + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_StopCFM( self ); }
ODE::ParamJoint#stopERP() — Get the error reduction parameter (ERP) used by the stops.
/* * ODE::ParamJoint#stopERP() * -- * Get the error reduction parameter (ERP) used by the stops. */ static VALUE ode_paramJoint_StopERP( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamStopERP + ode_axis_offset(self)) ); }
ODE::ParamJoint#stopERP() — Get the error reduction parameter (ERP) used by the stops.
/* * ODE::ParamJoint#stopERP() * -- * Get the error reduction parameter (ERP) used by the stops. */ static VALUE ode_paramJoint_StopERP( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamStopERP + ode_axis_offset(self)) ); }
ODE::ParamJoint#stopERP=( value ) — Set the error reduction parameter (ERP) used by the stops.
/* * ODE::ParamJoint#stopERP=( value ) * -- * Set the error reduction parameter (ERP) used by the stops. */ static VALUE ode_paramJoint_StopERP_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamStopERP + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_StopERP( self ); }
ODE::ParamJoint#stopERP() — Get the error reduction parameter (ERP) used by the stops.
/* * ODE::ParamJoint#stopERP() * -- * Get the error reduction parameter (ERP) used by the stops. */ static VALUE ode_paramJoint_StopERP( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamStopERP + ode_axis_offset(self)) ); }
ODE::ParamJoint#stopERP=( value ) — Set the error reduction parameter (ERP) used by the stops.
/* * ODE::ParamJoint#stopERP=( value ) * -- * Set the error reduction parameter (ERP) used by the stops. */ static VALUE ode_paramJoint_StopERP_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamStopERP + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_StopERP( self ); }
ODE::ParamJoint#stopERP=( value ) — Set the error reduction parameter (ERP) used by the stops.
/* * ODE::ParamJoint#stopERP=( value ) * -- * Set the error reduction parameter (ERP) used by the stops. */ static VALUE ode_paramJoint_StopERP_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamStopERP + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_StopERP( self ); }
ODE::ParamJoint#suspensionCFM() — Get the suspension constraint force mixing (CFM) value. Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionCFM() * -- * Get the suspension constraint force mixing (CFM) value. Currently this is * only implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionCFM( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamSuspensionCFM + ode_axis_offset(self)) ); }
ODE::ParamJoint#suspensionCFM() — Get the suspension constraint force mixing (CFM) value. Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionCFM() * -- * Get the suspension constraint force mixing (CFM) value. Currently this is * only implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionCFM( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamSuspensionCFM + ode_axis_offset(self)) ); }
ODE::ParamJoint#suspensionCFM=( value ) — Set the suspension constraint force mixing (CFM) value. Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionCFM=( value ) * -- * Set the suspension constraint force mixing (CFM) value. Currently this is * only implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionCFM_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0.0, 1.0 ); (setParam)( ptr->id, dParamSuspensionCFM + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_SuspensionCFM( self ); }
ODE::ParamJoint#suspensionCFM() — Get the suspension constraint force mixing (CFM) value. Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionCFM() * -- * Get the suspension constraint force mixing (CFM) value. Currently this is * only implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionCFM( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamSuspensionCFM + ode_axis_offset(self)) ); }
ODE::ParamJoint#suspensionCFM=( value ) — Set the suspension constraint force mixing (CFM) value. Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionCFM=( value ) * -- * Set the suspension constraint force mixing (CFM) value. Currently this is * only implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionCFM_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0.0, 1.0 ); (setParam)( ptr->id, dParamSuspensionCFM + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_SuspensionCFM( self ); }
ODE::ParamJoint#suspensionCFM=( value ) — Set the suspension constraint force mixing (CFM) value. Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionCFM=( value ) * -- * Set the suspension constraint force mixing (CFM) value. Currently this is * only implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionCFM_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0.0, 1.0 ); (setParam)( ptr->id, dParamSuspensionCFM + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_SuspensionCFM( self ); }
ODE::ParamJoint#suspensionERP() — Get the suspension error reduction parameter (ERP). Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionERP() * -- * Get the suspension error reduction parameter (ERP). Currently this is only * implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionERP( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamSuspensionERP + ode_axis_offset(self)) ); }
ODE::ParamJoint#suspensionERP() — Get the suspension error reduction parameter (ERP). Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionERP() * -- * Get the suspension error reduction parameter (ERP). Currently this is only * implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionERP( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamSuspensionERP + ode_axis_offset(self)) ); }
ODE::ParamJoint#suspensionERP=( value ) — Set the suspension error reduction parameter (ERP). Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionERP=( value ) * -- * Set the suspension error reduction parameter (ERP). Currently this is only * implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionERP_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamSuspensionERP + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_SuspensionERP( self ); }
ODE::ParamJoint#suspensionERP() — Get the suspension error reduction parameter (ERP). Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionERP() * -- * Get the suspension error reduction parameter (ERP). Currently this is only * implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionERP( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamSuspensionERP + ode_axis_offset(self)) ); }
ODE::ParamJoint#suspensionERP=( value ) — Set the suspension error reduction parameter (ERP). Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionERP=( value ) * -- * Set the suspension error reduction parameter (ERP). Currently this is only * implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionERP_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamSuspensionERP + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_SuspensionERP( self ); }
ODE::ParamJoint#suspensionERP=( value ) — Set the suspension error reduction parameter (ERP). Currently this is only implemented for ODE::Hinge2Joint.
/* * ODE::ParamJoint#suspensionERP=( value ) * -- * Set the suspension error reduction parameter (ERP). Currently this is only * implemented for ODE::Hinge2Joint. */ static VALUE ode_paramJoint_SuspensionERP_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); CheckNumberBetween( NUM2DBL(value), "value", 0, 1 ); (setParam)( ptr->id, dParamSuspensionERP + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_SuspensionERP( self ); }
ODE::ParamJoint#vel() — Get motor velocity (this will be an angular or linear velocity).
/* * ODE::ParamJoint#vel() * -- * Get motor velocity (this will be an angular or linear velocity). */ static VALUE ode_paramJoint_Vel( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamVel + ode_axis_offset(self)) ); }
ODE::ParamJoint#vel() — Get motor velocity (this will be an angular or linear velocity).
/* * ODE::ParamJoint#vel() * -- * Get motor velocity (this will be an angular or linear velocity). */ static VALUE ode_paramJoint_Vel( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamVel + ode_axis_offset(self)) ); }
ODE::ParamJoint#vel=( velocity ) — Set desired motor velocity (this will be an angular or linear velocity).
/* * ODE::ParamJoint#vel=( velocity ) * -- * Set desired motor velocity (this will be an angular or linear velocity). */ static VALUE ode_paramJoint_Vel_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); (setParam)( ptr->id, dParamVel + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_Vel( self ); }
ODE::ParamJoint#vel() — Get motor velocity (this will be an angular or linear velocity).
/* * ODE::ParamJoint#vel() * -- * Get motor velocity (this will be an angular or linear velocity). */ static VALUE ode_paramJoint_Vel( self ) VALUE self; { ode_JOINT *ptr = get_joint( self ); dReal (* getParam)( dJointID, int ); JointParamGetFunction( getParam, self ); return rb_float_new( (getParam)(ptr->id, dParamVel + ode_axis_offset(self)) ); }
ODE::ParamJoint#vel=( velocity ) — Set desired motor velocity (this will be an angular or linear velocity).
/* * ODE::ParamJoint#vel=( velocity ) * -- * Set desired motor velocity (this will be an angular or linear velocity). */ static VALUE ode_paramJoint_Vel_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); (setParam)( ptr->id, dParamVel + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_Vel( self ); }
ODE::ParamJoint#vel=( velocity ) — Set desired motor velocity (this will be an angular or linear velocity).
/* * ODE::ParamJoint#vel=( velocity ) * -- * Set desired motor velocity (this will be an angular or linear velocity). */ static VALUE ode_paramJoint_Vel_eq( self, value ) VALUE self, value; { ode_JOINT *ptr = get_joint( self ); void (* setParam)( dJointID, int, dReal ); JointParamSetFunction( setParam, self ); (setParam)( ptr->id, dParamVel + ode_axis_offset(self), (dReal)NUM2DBL(value) ); return ode_paramJoint_Vel( self ); }