
# A Cylindrical internal_connection which is quite flexible around the non-axial directions
BearingMate is Physics3D.Interactions.Cylindrical:
    # Rely on hinges in the AxleBearingConnections for assembly with SNAP
    enable_snap: false
    # Just to be super clear, this Mate will solve the physics for the bearings
    enabled: true
    # A slight friction around the axles
    friction_rotational becomes Physics.Interactions.Dissipation.DryScaleBoxFriction:
        coefficient: 0.001
    # The bearings are stiff in translational direction
    # but quite rotationally flexible
    flexibility becomes Physics3D.Interactions.Flexibility.LinearElasticCylindricalFlexibility:
        default_stiffness: 1E10
        around_normal.stiffness: 1E5
        around_cross.stiffness: 1E5

    dissipation becomes Physics3D.Interactions.Dissipation.CylindricalMechanicalDamping:
        default_damping: flexibility.default_stiffness * 0.01
        around_normal.damping_constant: flexibility.around_normal.stiffness * 0.01
        around_cross.damping_constant: flexibility.around_cross.stiffness * 0.01
