yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #04388
[Question #155490]: Change particle position in python
New question #155490 on Yade:
https://answers.launchpad.net/yade/+question/155490
Hi folks,
I tried to change particle position in py considering only one component as:
O.bodies[0].state.pos[2]=2; # or O.bodies[0].state.se3[0][2]=2;
but this did not work. Then, if I try to do that by using Vector3, something like:
O.bodies[0].state.pos=Vector3(2,2,2)
it works. Why is that one cannot change a single vector component in py?
Chiara
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.