[ODE] Re: ODE Digest, Vol 12, Issue 40
Pete Baron
sibaroni at hotmail.com
Wed Sep 1 15:48:18 MST 2004
Hi Liu,
the forces are set to zero at the end of quickstep.c (line 779):
// zero all force accumulators
for (i=0; i<nb; i++) {
dSetZero (body[i]->facc,3);
dSetZero (body[i]->tacc,3);
}
you should be able to copy them somewhere safe inside this loop and use the
copied values.
cheers,
Pete Baron
sibaroni at hotmail.com
http://home.btconnect.com/pete/homepage.html
>Date: Tue, 31 Aug 2004 23:36:29 +0800
>From: "Liu" <liu.mailbox at msa.hinet.net>
>Subject: Re: [ODE] Re: Box on The Ground
>To: "Ode at Q12. Org" <ode at q12.org>
>Message-ID: <000d01c48f70$4a64ddd0$52fb8bdc at boycomputer>
>Content-Type: text/plain; charset="big5"
>
>If I want to get the Box force from the ground, how can i get it ?
>I use body.getForce( );
>but it always get none.
>
>thanks a lot.
More information about the ODE
mailing list