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.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to