← Back to team overview

yade-users team mailing list archive

[Question #235405]: body shift

 

New question #235405 on Yade:
https://answers.launchpad.net/yade/+question/235405

Hi,

I want to shift a moving body (a box) and adapt its position relative to another body (clump). I tried this:

def readjustBoxes():
  for ii in id_boxes:
    O.bodies[ii].state.pos[2] = newposition

O.engines=O.engines+[PyRunner(iterPeriod=1000,command='readjustBoxes()')]

Unfortunately this does not work. Note, that i do want to shift the body with a given velocity, it should just appear with another position (without a erase-recreate procedure).

Is it possible somehow?

christian

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