- Home /
Make a rope with Joints
Im trying to make a rope with configurable joints but failed to change the limit parameters of the joints in script, i mean the following code returns error because it's read only
_joint.linearLimit.limit = 2f;
Besides that i see no other way to make a rope for a grapling hook
Answer by InfiniBuzz · Aug 22, 2013 at 10:06 AM
to change the limits you can:
SoftJointLimit newLimit = new SoftJointLimit();
newLimit.limit = 2f;
newLimit.*otherVars* = _joint.linearLimit.*otherVars*; // if needed
_joint.linearLimit = newLimit;
hope it helps
PS: Also have a look at the QuickRopes 2 Asset on the Asset Store. It's not free but it's powerful.
Tanks, i had to make a new joint script that simulates physics because the the built in ones make the camera shake too much, but config Joints are really good in other situations. It helps :)
Your answer
Follow this Question
Related Questions
Distribute distances between configurable joint links 0 Answers
ConfigurableJoint Anchors and nested RigidBodies 2 Answers
Two way joint? 1 Answer
Can you define linear limits per axis on a Configurable Joint? 0 Answers
Get ground position for Joint 0 Answers