Question #406621 on Yade changed:
https://answers.launchpad.net/yade/+question/406621
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Felipe
upBox = O.bodies[540]
> O.forces.addF(upBox.id)
> O.forces.setPermF(upBox.id,(0,10,0))
> upBox.dynamic = True # [4]
> upBox.state.mass = 10
> upBox.state.inertia =(0,1,0)
>
> is it correct?
sorry, I did a typo in te first answer, addF amd setParmF has the same
arguments (id,forceVector). Choose only one of them (depending on if you
want to change the value often, then choode addF, if you want to have
constant value, setPermF is preferable).
I guess state.inertia should not have any zero (not tested)
otherwise I think it could work..
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 : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp