How to create a "rope" between two positions?

Recommended Posts

I'm creating a zipline resource, and I'd like to know how to create a rope between two points, any ideas? I remember seeing a resource for a gas station, where there was a hose that changed size dynamically.

Resource: zipline

I don't know if it's a smart option, but I can make some models with fixed sizes, 10 meters, 5 meters, 2 meters and 1 meter.

Depending on the distance, I calculate how many objects I need to create and create them in sequence.

Example 23 meters away, 2x10m + 2m + 1m.

What do you think?

33 minutes ago, Gaimo said:

I'm creating a zipline resource, and I'd like to know how to create a rope between two points, any ideas? I remember seeing a resource for a gas station, where there was a hose that changed size dynamically.

Resource: zipline

I don't know if it's a smart option, but I can make some models with fixed sizes, 10 meters, 5 meters, 2 meters and 1 meter.

Depending on the distance, I calculate how many objects I need to create and create them in sequence.

Example 23 meters away, 2x10m + 2m + 1m.

What do you think?

This can be an option but it may look ugly even with the right color.

I think I know a solution for it, it's really cheap and your idea in my opinion is the best because if you want something custom then definitely use that custom model, basically you need to define the two points then use the model, define the args exactly to match that length you need it to be.

But if you wanna stay with the cheap solution then you should use these functions:(These functions are used in the first method you mentioned.)

getDistanceBetweenPoints3D

dxDrawLine3D

I like the result of a 3d line, I just need to make a few adjustments, it's in the wrong position when it's descending.

You maybe should adjust the player height positions when starting descending at that specific position, just to suit your needs.

Create an account

Register a new account