[ODE] Question about a change in the source for
dJointSetAMotorAxis
Yotto Koga
ykoga at Softimage.com
Fri Apr 30 15:54:48 MST 2004
is it like the idea with the ERP but instead of zeroing an error you're adding a "motorizing term" to the constraint equation?
thanks
yotto
-----Original Message-----
From: Russ Smith [mailto:russ at q12.org]
Sent: Friday, April 30, 2004 12:01 PM
To: Yotto Koga
Cc: ode at q12.org
Subject: Re: [ODE] Question about a change in the source for
dJointSetAMotorAxis
> BTW, do you have any tips on creating a new motor type? I've read the
> doc on new joint types but was wondering how to go about adding motors
> to it.
i wrote a chapter for the book "Game Gems 4" on creating new joint types
for ODE, and part of that chapter addresses this question (in a kind of
intuitive way, not really in a detailed mathematical way).
in brief though, if you have a new joint that you've just created you
can make any of the constraint axes 'motorized' by playing with the 'c'
and 'fmax' vectors. for each linear or translational constraint axis,
'c' is the relative velocity that should be achieved along that axis,
and fmax is the maximum amount of force to apply to reach that velocity.
russ.
--
Russell Smith
http://www.q12.org
More information about the ODE
mailing list