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

    Status: Open => Answered

Jan Stránský proposed the following answer:
>       if rotationAngle > 0 and rotationAngle <= math.pi:
>   elif rotationAngle > 0 and rotationAngle <= math.pi:

still the same, you have an if condition and exactly the same elif condition. 
It does not make sense.
If the condition is met, the first if branch is executed and and nothing else.
If the condition is not met, nor it is in elif.
Result = the code in elif branch (setting -1*rate) is NEVER executed -> the 
rate is never switched, resulting in "the shaft still rotates in one direction".

why not simply else instead of elif? is there any other option?

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

Reply via email to