← Back to team overview

yade-users team mailing list archive

Re: [Question #688763]: ossillation_rotation

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
my point was, that inside ossillation_rotation you have:
###
if condition:
   cylinderRot.angularVelocity=rate
elif theSameCondition:
   cylinderRot.angularVelocity=-1*rate
###

the problem is that the code inside elif branch is never executed
(either it is not fullfiled or is "eaten" by the first if) and the rate
is never switched, resulting in "the shaft rotates always in one
direction"

cheers
Jan

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