Hello,
I need some explanations about joints because it's quite hard to understand the vocabulary for a non-english user. Indeed, I'm lost with the words global anchor, local anchor, global axis, local axis, joint... because I don't know where are located all of these points and vectors in the 3D space. I'll try to illustrate this with pictures.
A/ REVOLUTIVE JOINT : PHY MAKE REVOLUTE JOINT ID, Obj1, Obj2, axisX, axisY, axisZ, X, Y, Z
1/ I use "Phy make revolute joint 1,1,2,0,1,0,0,0,0". I have made a joint on the Y axis at the point (0,0,0). Does this command illustrate what I wrote on the picture ?
2/ What is the name of this point (position : 0,0,0, axis : 0,1,0) ? Joint point ? Anchor point ?...
3/ About the axis X-Y-Z, we can use 1 for a full movement for the specified axis and 0 for no movement. Can we use values like 0.5, 0.75 ? If we can, how can we interpretate this : a half movement ...?
B/ REVOLUTIVE JOINT : PHY MAKE REVOLUTE JOINT ID, Obj1, Obj2
1/ When we use this syntax, we need to set some properties. Here, I'm a bit lost. What is the difference between a local and a global anchor ? Same question for a global and a local axis ?
2/ Here are the commands :
- phy set revolute joint global anchor : for object 1 and object 2
- phy set revolute joint local anchor : for object 1 and object 2
Each point has a local and global anchor but where are they in the 3D space ? Why do we also need a global and local axis for each object ?
3/ In my way of thinking, probably wrong because I just begin with the physic concepts, we only need 3 points like this so why 4 points and 4 axis ?
What did I miss ?
C/ PHY MAKE REVOLUTE JOINT : THE TWO SYNTAXES
1/ If I use "Phy make revolute joint 1,1,2,0,1,0,0,0,0", some defaults are used when this is the case. But what is the equivalent if I set the properties : set global/local anchor, set global/local axis ?
Phy make revolute joint 1,1,2,0,1,0,0,0,0 = Phy set revolute joint global anchor 1,0,0,0,0 and Phy set revolute joint global anchor 1,1,0,0,0 !?
2/ - Axis : 0,1,0 are the local/global axis for the object 1, object 2 ?
- Point : 0,0,0 is the local/global anchor of one object ?
I hope you have understand my questions and you can help me to understand all the concepts.
Thanks
Coding is dangerous for health ...