yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #19723
Re: [Question #680892]: O.engines[].dead=True
Question #680892 on Yade changed:
https://answers.launchpad.net/yade/+question/680892
Status: Open => Answered
Robert Caulk proposed the following answer:
The script is not Working for me (and a tough sell on "Minimal" too :-)
)
I get: NameError: name 'angle' is not defined
Sifting through your script, I will take a guess at your problem:
RotationEngine allows you to add an angularVelocity to a body. The
engine is not responsible for the dynamics of the system. Turning the
engine to dead means the RotationEngine is no longer setting an
angularVelocity to the body. But the body still exists and still has an
angular velocity.
I guess you are looking for something more along the lines of:
def motion_5():
O.engines[11].angularVelocity=0
O.engines[11].angularVelocity=0
If you want to set the angularVelocity to 0 for a set of bodies.
Cheers,
Robert
--
You received this question notification because your team yade-users is
an answer contact for Yade.