[ODE] Approximate Hydrodynamic Forces Demo
Ander Taylor
ander_taylor at hotmail.com
Wed Apr 23 15:21:01 2003
Hi Ted,
You got it : )
Here is the code:
void JointHinge::SetAllMovParams(double LoStop, double HiStop,
double Velocity, double MaxForce,
double FudgeFactor, double Bounce,
double JointCFM, double StopERP, double StopCFM)
{
if(LoStop > -3.141592653 && LoStop <= 0) dJointSetHingeParam(this->_id,
dParamLoStop, LoStop);
if(HiStop < 3.141592653 && HiStop >= 0) dJointSetHingeParam(this->_id,
dParamHiStop, HiStop);
dJointSetHingeParam(this->_id, dParamVel, Velocity);
dJointSetHingeParam(this->_id, dParamFMax, MaxForce);
dJointSetHingeParam(this->_id, dParamFudgeFactor, FudgeFactor);
dJointSetHingeParam(this->_id, dParamBounce, Bounce);
dJointSetHingeParam(this->_id, dParamCFM, JointCFM);
dJointSetHingeParam(this->_id, dParamStopERP, StopERP);
dJointSetHingeParam(this->_id, dParamStopCFM, StopCFM);
}
Cheers,
Ander
Ted Wrote:
On Tue, Apr 22, 2003 at 11:30:50AM +0000, Ander Taylor wrote:
> Hi Ted here is the code so far.
>
> void BoxGeom::ApplyHydrodynamicForces(dReal linear_viscosity, dReal
> angular_viscosity, dReal density, Vector3 flow)
Thanks, but now I've got another questions, what parameters does this
function call set:
SubRightWingHinge.SetAllMovParams(-1, 1, 0, 500000, 1, 0.2, 0.0000001,
0.00000 01, 0.0000001)
ODE has no such function, though it appears to match up to the Parameter
functions if you drop dParamSuspensionERP and dParamSuspensionCFM which
hinges don't use. Is this what these values match?
Ted
_________________________________________________________________
Hotmail now available on Australian mobile phones. Go to
http://ninemsn.com.au/mobilecentral/hotmail_mobile.asp