← Back to team overview

yade-users team mailing list archive

Re: [Question #245957]: BicyclePedalEngine not defined

 

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

Carrie posted a new comment:
To Jan and all

Thank you for your tips. But I still have some questions.  : )

--I print out the cylIds. They are a series of spheres in the pack.
   Like this [0,1, 2, 3, 4, ...2000, 2001]
   So,  the rotation object is the single sphere but not the cylinder made of the spheres ?

   How can I make them rotate around the centroid of the cylinder rather
than the individual spheres?

--I change the angularVelocity in a large range, and the cylinder does not rotate (with rotateAroundZero=False ). 
   But with the same angularVelocity ( and with rotateAroundZero=True ), the cylinder does rotate around one point. 
   So i think this  problem has no relation to velocity.

--if i use a change point in the RotationEngine, will it rotate around the changing point? (using O.time as a variable)
   Like this
   RotationEngine(rotateAroundZero=True,zeroPoint=(0,25*O.time,0),rotationAxis=(1,0,0),angularVelocity=100,ids=cylIds,label='rotor')

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.