Jump to content

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?

Link to comment
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.

https://wiki.multitheftauto.com/wiki/DxDrawLine3D

Link to comment

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

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...