#Rope Physics

31 messages · Page 1 of 1 (latest)

red holly
#

Hello, I need a rope with physics that won’t just spiral out of control, I want it to be able to interact with players hitting it, and objects flying into it/colliding as if it as if it was just a rope being interacted with.

As long as it works decently so there’s the good illusion of a rope in rec room. This is like the last thing I need in my game, and it’s like the key feature of a puzzle in the game.

Preferably a video of sorts you can provide, or some pretty clear instructional pictures that I could follow and try to under stand would be nice aswell.

vivid frigate
#

I have ideas but this seems super complicated, I'll leave it to the really smart people like Cryptic

red holly
#

Preferably a video of sorts you can provide, or some pretty clear instructional pictures that I could follow and try to under stand

vivid frigate
#

And stuff

red holly
vivid frigate
#

I could try to make a rope, but it will most likely be janky

#

And only a limited amount of things can hit it at once

#

Wait, nvm

#

My idea wouldn't work

#

It uses math I don't know

torpid gate
#

There may be a better solution, but this is a simple solution if you don’t mind it not being perfect:

Have a physical sphere for each point you want the rope to have

Check if the distance from the first point to the second point is greater than (max distance)

If it is, then add velocity in this direction, Point 1 Position - Point 2 Direction

If it’s not, check if the distance from point 2 to point 3 is greater than (Max Distance), also check this after adding velocity, and repeat the process

#

Then just use beacons or lasers to connect them

vivid frigate
#

That wouldn't work

#

I'm assuming they want a rope that can wrap around things

vapid vine
#

all fest's method is doing is basically having a bunch of spheres

Then, you check through each sphere

If Sphere1 is greater than X distance from Sphere0, add velocity to Sphere1 towards Sphere0
Repeat for each sphere, dont do anything to sphere 0, its the anchor point

or hell, do it both ways assuming Sphere0 is not anchored

vivid frigate
#

Ohhh

#

I get it now

#

I see what he meant now

#

You would need a ton of spheres for a more accurate rope

#

Right?

red holly
#

My brain, I need picture, or visual representation, agh.

vivid frigate
#

Rip ink

vivid frigate
red holly
vivid frigate
#

o-o-o-o-o-o-o-o magic

#

If I wasn't going to bed I'd get on and make it for you