Sory for the first part of my last post, those lines of course have no effect on dynamic bodies :-) Jan
>Hello, > >code in TranslationEngine: >... >if (!b->isDynamic()) b->state->pos+=dt*velocity*translationAxis; >... > >code in RotationEngine >... >if (!b->isDynamic()) b->state->pos=q*l+zeroPoint; >... > >if TranslationEngine works correct, I would try to use += (instead of = ) in >RotationEngine.. (I am not familiar with quaternions yet, so maybe this is >total nonsence :-) > > >Another thing, I would normalize the translationAxis in TranslationEngine, or? >as it is in RotationEngine.. If you double the vector of translationAxis, the >resulting length of motion is also doubled? > >cheers >Jan > > > >______________________________________________________________ >> Od: "Anton Gladky" <[email protected]> >> Komu: [email protected] >> Datum: 19.11.2010 20:15 >> Předmět: Re: [Yade-dev] [Yade-users] Combining engines prescribing movement >> >>Hi, >> >>I have started to create regression tests for Translation and Rotation >>engines. No problems with translation engine. But rotation engine gives >>strange results with dynamic bodies. >> >>Can it be, that NewtonIntegrator does not handle properly velocities, >>got from Rotation engines? >>I will try to finish those regression tests soon. >> >>Thanks for suggestions. >> >>Anton >> >>_______________________________________________ >>Mailing list: https://launchpad.net/~yade-dev >>Post to : [email protected] >>Unsubscribe : https://launchpad.net/~yade-dev >>More help : https://help.launchpad.net/ListHelp >> > >_______________________________________________ >Mailing list: https://launchpad.net/~yade-dev >Post to : [email protected] >Unsubscribe : https://launchpad.net/~yade-dev >More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

