yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #14965
Re: [Question #633674]: How you move a wall or facet?
Question #633674 on Yade changed:
https://answers.launchpad.net/yade/+question/633674
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
you need to assign pos as full Vector3 at once:
O.bodies[3].state.pos[1]=1.5 # does not work
pos = O.bodies[3].state.pos # copy of state.pos
pos = 1.5 # set values as needed
O.bodies[3].state.pos = pos # new pos as complete Vector3 at once
Just a note, assigning position directly is not recommended in Yade, so
you should know what and why you do. E.g. if the position change is
before the first O.step, there should be no problem.
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.