The meaning of O.bodies.state.ori/refOri
Hi,
When I was trying to calculate the rotation angle of spheres, I found the following state parameters may be useful, but I didn't fully understand the meaning of each parameter.
For example, for one typical sphere, I got:
1.O.bodies[
#get current orientation
I got: Quaternion(
2.O.bodies[
# get reference orientation
I got: Quaternion(
How yade define the refOri for a particle? I suppose refOri will not change, am I right?
3.O.bodies[
#Rotation from reference orientation (as rotation vector)
I got: Vector3(
How can I use this vector to calculate the rotation angle? Is this vector related to ori and refOri?
4.O.bodies[
I got: Vector3(
Can the displacement of the sphere be calculated by O.state.
Thanks in advance
Have a good weekend
Leonard
https:/
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: