Skip to content

Make the chain & rope connector piece attach rope and chains via script #7

@izgebayyurt

Description

@izgebayyurt

Must be done after #3.

Since the chain & ropes are generated via a script, we need to be able to attach the connector part to the rope and the chain via script. This will probably require:

  • Placing the connector piece in the correct location (most likely between the two nodes, need to access the node locations and find the midpoint
  • Rotating the connector to be aligned with the rope & chain. This might require some trial and error to get the math right.
  • Connecting the rope's endpoint and the chain's starting point to the connector piece via code. There is a script in the Obi suite that lets us make connections between rope/chains and other objects such that the rope/chains will exert force on them. This will ensure that the piece will move together with the rope/chains.
    • Alternatively, we can move the connector via code (update its location to be in between the rope/chains every frame.) I would go with the first option, but if it's unfeasible, we can fall back on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureAdding new feature in the software

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions