#Find the "tension" on a rope constraint
1 messages · Page 1 of 1 (latest)
T = m * a
simulate or find tension
its a part floating in water, with another LinearVelocity acting on the same attachment as the RopeConstraint
(a "fish")
i dont understand the situation
break it down like its a physics problem at school
where Fw is the force from the winch of the RopeConstraint
and Ff is the force from the LinearVelocity or "fish"
theta is the angle of the RopeConstraint
pretty sure theta would be:
local diffY = Pointer.Position.Y - Device.Position.Y
local diffXZ = (Vector2.new(Pointer.Position.X, Pointer.Position.Z) - Vector2.new(Device.Position.X, Device.Position.Z)).Magnitude
local angle = math.abs(math.atan2(diffY, diffXZ)) --angle between two points: atan2(yb - ya, xb - xa)
Pointer is the bobber (in the water), the part with both forces acting on it
and Device is the end of the rod (near the character)
feesh indeed
theta doesnt even matter
it do
since its relative to the tension
look at how u drew the arrows
its parallel to the tension
just get the sum of force parallel
yeah but that's something I have to derive myself
get rope length, get rope stretchy amount before no more stretch, that is ur window, then calculate percent
ezpz
its not deep
rope length doesnt replicate
it is changing
i did
then calculate it again
T +Fw - F_F
why is it changing
reel feesh
i have to deliver this POC today, im stressing
blud is not listening
POC?
bruh
just wondering
proof of concept
2 businessy words for you haze
yes exactly
ok lol
i feel tension now that youre here
@tranquil cairn is the tension an indicator for line break or does it have other effect
the X and Z angle of F_f can also change
you guys are overcomplicated ts wtf
yeah pretty much
oh what the hell
its 3d?
2D
oh 2d
bro
what
just measure the difference and choose a window
distance
ill draw
1 has slack, no tension
2 is taught, but no stretch, min tension
3 is streched to max, max tension
you set a window on 2 and 3
and measure a percent to calculate a tension value
then its all application code
does that make sense
that was the original idea, but I haven't been able to pin down that length there's too much noise
the first of which is the replication of the RopeConstraint.Length
I;m using an unrelaible to replicate is
doesnt the client handle that anyways?
so noise from latency
you just need to keep track of sim on server and do sanity checks
no, I need to handle it on the server
but I mean why are you replicating
because of how these goons have this set up
because I wont be able to compare the length (which changes from using the winch) otherwise
then only replicate when they use the winch and match the sim
why dont you just do it all on the server
ugh physics
client can be visual mostly
I am, but the actual RopeConstraint is in a tool which is in the player's backpack
so the actual sim is on the client for the winch
wadafuck
even if it's enabled on the server
it's too late for that
so what you are having the client tell the server how the rope is doing?
wtf
why is it too late
yes lmao
that feels unsafe
its not too late
I gave them an estimate for today
its an easy switch tho'
and they dont know how this shit works
on equip just spawn it
on unequip despawn it
then you can have server sim
cant be that gnarly to do
and it solves ur problems
right
I just know it's going to break a bunch of other shit
what else does the winch interact with
that wouldnt only be moving the winch
is the player immobile during fishing?
while casting the line yes
just cast
that makes things harder
look at this shit
blud is solving the 3 body problem for fish to get robux simulator
so, the physics are still replicated yeah
not the constraints themselves
so you can calculate tension based on velocity changes due to the ropes bonce propery
but the effects are
only how they interact with parts
yes
I have 0 restitution rn
so serverside you can keep a constant of the ropes properties that dont change
that shouldnt change
then use those and the velocity changes of the fish
to calculate tension
everything about the rope changes except for the pretty much
yeah, wait a certain amount of time, apply a LinearVelocity in an 2D direction XZ
serverside or client
good
so any changes that deviate you can attribute to rope
then you can make your own virtual tension that feels good for the game
does that make sense
the math doesnt matter, just get a delta and balance
that was the idea here:
didnt work?
yeah it makes sense, but the math matters a little, because of possible edge cases
and the actual math is a bit over my head
the math doesnt matter at all
edge cases like the fish hitting the lake border should just be squished
as long as it comes out to a linear function yeah
in fish behavior
I just dont want to end up with a concave function
you could also not base it on force at all
I was thinking time
you could base it on angle change from original path
that would be pretty easy
yeah that would suck
angle change is decent I think
cause if the fish is going towards you
less tension
away more
and it balances naturally
no
good
it doesnt pull on the Y
yeah just calculate an angle
and then subtract
however many degrees different it is apply tension
then playtest it and see what feels good
thats good enough for POC
you can make it better later
different from what though
different from the fish's movement
so, when the fish is moving, then you check tension
when it isnt, you can default to no tension
yeah I'm only checking when it's pulling
@tranquil cairn
1 is max tension
2 is 0.5x tension
thats linear
you may want to alter the formula, but thats the basics
arrow is fish movement direction
what the
I'm just trying to figure out a formula for it
i gotchu jcx
then you will know how to make formula
The tension at which a fishing line snaps is commonly called the line's “strength.” What minimum strength is needed for a line that is to stop a salmon of weight 85 N in 11 cm if the fish is initially drifting horizontally at 2.8 m/s? Assume a constant deceleration.
that's just to stop the fish from moving
wow looks like @elfin anvil fucking sucks and you should do my idea
i am taking ap physics c mechanics
like if you want
format this into a whole frq question
ill derive everything for you
I tink
I formatted everything except for the change in angle for F_f
also do u still need help?
ask chat gpt for this
dont ask it to code it
ask it to derive the equation
and ill fact check it
im too lazy to frikin do it rn
not sure, testing out a solution rn
ok
well idk ur steps on how u derived it
its just a bunch of code
can i see ur work on paper
didnt do any
😭
HELL YEAH'
W