← Back to team overview

yade-users team mailing list archive

Re: [Question #687331]: How does the orientation of particle work in YADE?

 

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

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hi

> 1. In mathematics, each of the component of the quaternion ranges from
-1 to 1, and x**2+y**2+z**2+w**2=1

I would disagree with that, and Wikipedia does the same:
https://en.wikipedia.org/wiki/Quaternion#Definition

As for your 2., a.state.orientation=(10,10,10,10) will first of all
return an error since you did not follow the "((x, y, z),w)" syntax:
parentheses to define the vector part (x,y,z) are missing in your
command

a.state.ori = ((10,10,10),10) # a a Body
would work on the other hand

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