← 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: Answered => Open

nobody is still having a problem:
Hi Jan,

sorry for the late reply!

I change the code as you mentioned.
But it still doesn't work. the shaft still rotates in one direction. I think this is related to the reference orientation. 
under the elif condition.


if condition:
   cylinderRot.angularVelocity=rate
elif theSameCondition:
   cylinderRot.angularVelocity=-1*rate
If the reference orientation didn't change, for example, when the shaft rotates 200 degrees, if the elif condition work, the shaft will rotate in another direction, maybe with one timestep, the rotation angle will again be 200 degrees. so, we can't see the shaft rotates in another direction.

best,
Yong

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