Discover Learn Reference Get OpenPLX Search Contact

MachineModeling/Components/Primitive/Link

CustomLength

CustomLength is Components.Primitive.Link.Base:
    .doc: """
    Link variant that places the two connectors symmetrically around
    the body origin using a configurable length.
    """

    length is Real

    connector_1 becomes Physics3D.Interactions.RedirectedMateConnector:
        main_axis: Constants.AlongAxle
        position: -Constants.AlongLink * length * 0.5
        redirected_parent: body

    connector_2 becomes Physics3D.Interactions.RedirectedMateConnector:
        main_axis: Constants.AlongAxle
        position: Constants.AlongLink * length * 0.5
        redirected_parent: body

OpenPLX is a work in progress. This draft version will evolve with user feedback and experience. We welcome your input and collaboration.
X