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.
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: