Use a Fixed Joint for 2D and 3D components to prevent any relative motion between the two components. The components connected by this joint are rigidly attached to each other and no additional degrees of freedom are added. The forces or moments required to restrict the relative motion between the two components can be computed.