Use the Hinge Joint node for 2D and 3D components to create a joint between two components such that they are free to rotate relative to each other about the joint axis at the center of joint.
See Prismatic Joint for all settings — Attachment Selection, Center of Joint, Joint Elasticity, Joint Forces and Moments, Advanced and Sketch. For 3D components, also see Axis of Joint.