← Back to team overview

yade-users team mailing list archive

Re: [Question #163736]: Body' state change

 

Question #163736 on Yade changed:
https://answers.launchpad.net/yade/+question/163736

    Status: Open => Answered

honzik proposed the following answer:

>1.  I created a RotationEngine and a TranslationEngine, both with the
>same id, as want that a body (obtained from a mesh for example) has
>translational and rotational movement. But I see that just the one that
>is defined in the second place affects the body in the simulation. I saw
>that there is a CombinedKinematicEngine, but I am not sure if I should
>use it for this case. Anyway, how should I proceed in order to have the
>rotation and translation engines acting on the body?
O.engines = [
...
RotationEngine(...) + TranslationalEngine(...)
...
]

>
>2. I want to change the position and orientation of the body at some iterations. Can I do it using some Engine? I cannot imagine that I can do this using the TranslationEngine, as with this Engine I can define just the velocity. 
O.bodies[...].state.pos = vector3(a,b,c)
but I am not sure if this works or not...

Jan

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.