← Back to team overview

yade-users team mailing list archive

Re: [Question #686076]: Problem of Bodies rotation

 

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

Jan Stránský proposed the following answer:
> However, the speed I cound not change during simulation.
> But the velocity can not changed.

Why?
Please always try to be specific. Did you get an error? What error? The velocity did not change? How did you investigate it? ...
###
RotationEngine(..., label="rotEngine")
...
def myRotation():
   rotEngine.angularVelocity = whatever
###

Concerning axis-angle, in Python Quaternion can be constructed directly from axis and angle:
C++: Quaternionr q(AngleAxisr(angularVelocity*scene->dt,rotationAxis));
Python: q = Quaternion(rotationAxis,angularVelocity*O.dt)

cheers
Jan

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