You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, a project of mine requires a rope constraint that is updating it's length during run, I tried to use winch for this but due to winches custom physics that make it super unrealistic on its behaviour, I tried to replicate what my goal was in rope-constraints, but for some reason even if the documentation of e2 says you can set rope constraints lengths by setLength() it doesn't work as expected but rather nothing happens.
I'll post here the rough setup of my project in hopes someone knows whether this is a bug or limitation to the rope-constraint itself:
To create rope constrain during the initialization of chip:
rope(1,SubObject,vec(0,0,0),MainObject,vec(0,0,0),0,0.2,"cable/cable2")
During the running on update loop:
SubObject:setLength(1,sin(EllapsedTime*25)*20)
According to wiremod documentation:
Entity:setLength(Number Index, Number Length) - Sets the length of a winch/hydraulic/rope stored in this entity at a referenceid
If you have any information on how to fix it on my side or in the constraintcore, all help is appreciated.
The text was updated successfully, but these errors were encountered:
I also experienced this when designing my E2 wrecking ball mech, but I worked around it by destroying and recreating the rope as needed. Should probably look into fixing this though.
Hello, a project of mine requires a rope constraint that is updating it's length during run, I tried to use winch for this but due to winches custom physics that make it super unrealistic on its behaviour, I tried to replicate what my goal was in rope-constraints, but for some reason even if the documentation of e2 says you can set rope constraints lengths by setLength() it doesn't work as expected but rather nothing happens.
I'll post here the rough setup of my project in hopes someone knows whether this is a bug or limitation to the rope-constraint itself:
To create rope constrain during the initialization of chip:
rope(1,SubObject,vec(0,0,0),MainObject,vec(0,0,0),0,0.2,"cable/cable2")
During the running on update loop:
SubObject:setLength(1,sin(EllapsedTime*25)*20)
According to wiremod documentation:
Entity:setLength(Number Index, Number Length) - Sets the length of a winch/hydraulic/rope stored in this entity at a referenceid
If you have any information on how to fix it on my side or in the constraintcore, all help is appreciated.
The text was updated successfully, but these errors were encountered: