← Back to team overview

yade-users team mailing list archive

Re: [Question #275973]: Mannually Update Location of Components of Clumps

 

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

Christian Jakob posted a new comment:
Hi,

I do not understand the reason this:

> ## here is the example:
> a = utils.sphere([0,0,0],1)
> b = utils.sphere([0,0,1],1)
> c = utils.sphere([0,0,2],1)
> O.bodies.appendClumped([a,b,c]);
>
> ##Now, I want to mannually change the position of 'a':
> a.state.pos = Vector3(0,0,100)

Why dont you do the following?

a = utils.sphere([0,0,100],1)
b = utils.sphere([0,0,1],1)
c = utils.sphere([0,0,2],1)
O.bodies.appendClumped([a,b,c])

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.