Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

RopeConstraint Visible Attachment?

Asked by 8 years ago

I have a script here which binds attachments with a RopeConstraint. It does work and the part floats as if it was attached with a rope. (obviously).

I know this isn't a request site, I really do but this just concerns me. There isn't really anywhere else. I looked at other places (youtube, wiki, etc) but nothing really helps me so I gave up and was hoping someone could help me with this.

Here it is:

local rc = script.Parent:WaitForChild("RopeConstraint")

atm0 = script.Parent:WaitForChild("Part0").Attachment
atm1 = script.Parent:WaitForChild("Part1").Attachment

wait()
rc.Attachment0 = atm0
rc.Attachment1 = atm1

My question is simple.

How would I make visible rope going from the part to the other part? If you know what I mean. I thought at first there would already be a visible rope but it is literally just floating with no visible attachments.

Thanks. ^_^

0
This isn't a request. This is asking for help, which is perfectly fine. Async_io 908 — 8y
0
Well thanks but I am hoping someone will be able to give me an answer. Zefeated 70 — 8y

1 answer

Log in to vote
0
Answered by
1N0body 206 Moderation Voter
8 years ago

This is some next level physics, very complicated.

While myself I'm 0 in this field I can give you a direction, a "rope" mechanism can be done using

Verlet integration

If you want something "simple" instead, maybe I can suggest this:

Inverse kinematics

0
Thanks, I'll experiment with this and try things out. :) Zefeated 70 — 8y
Ad

Answer this question