Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get the world coordinate of a joint

0 REPLIES 0
Reply
Message 1 of 1
nick.b.amato
117 Views, 0 Replies

How to get the world coordinate of a joint

I have a few joints that I need to get the coordinates of in the world context. The joints connect a component to the rest of the assembly. In the image, the wheel is connected to a bearing on the other side of the black beam via the revolute joint. The bearing and all other components in the assembly (beams, bearings, brackets) are all in a rigid group. 

nickbamato_0-1688335142776.png

As far as my understanding, geometryOrOriginOne returns the geometry for the joint that contains the origin in the component context, which is why when I try to get the position of every joint they return the same position.

 

for (auto& joint : root->allJoints()) {
    auto origin = joint->geometryOrOriginOne()->cast<JointGeometry>()->origin();
}

 

 

How do I get world coordinates of the joints?

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report