How to constraint swing force on Rope physics using Character Joint?

hey guys,

I’m making a game which needs a rope system, just a simple one for the character swing with it, I already tried a couple of things, like using hinge joints, configurable joints and character joints, so far character joint seems the correct joint to use

i can constraint the unnecessary rotation etc, but I still can’t constrain the swing force that the player generate

so this is how it works on the game :

  • character jump, touch/detect the rope bone/segment
  • character bind to the rope by parent/transform-rotation matching
  • while on rope, player can generate force to either left to right, which directly effect on the rope’s bone segment that the player attached to

it work perfectly, but i want it to not swing too far, to constraint it somehow
is there any setting for this on the character joint ? , or should i hardcoded it to check the velocity on each bones segment?

i don’t even know if this is the correct way to make a rope physics , if anyone can give an insight, i would be very grateful

thank you in advance.

anyway i’ve been able to found the problem myself, i forgot you can simply clamp value, and thats exactly what i did, just clamp the velocity based on its magnitude on rope part where player/character hanging on