Configurable joint : How to pull the object towards anchor using rigidbody
Hi guys.
I am trying to pull the object towards the anchor of the joint. How do i do this? I am new to joints and kind of confuse with the documentation.
Do i need to modify the anchor while i add a force to the object towards the anchor?
Here's what I'm trying to achieve, but I want to use rigidbody instread.
handle.GetComponent().anchor = Vector3.MoveTowards(handle.GetComponent().anchor, Vector3.zero, 0.3f);
this works, but i want the rigidbody to do the pulling force so when I destroy the joint. the object will keep its velocity.
Did you ever figure this out? Currently when I connect two rigidbodies, they don't pull together like they should and I can't change the $$anonymous$$/max distance to be negative. Any idea how to do this?
Your answer
Follow this Question
Related Questions
Character Joint stretches away from anchor on one of my joints only in Ragdoll 1 Answer
Need help with two Configurable joints ! (Two hands grab in VR) 1 Answer
(SOLVED) Object "pulls" other objects unintentionally 0 Answers
How to Make A Character Stop At Wall? 0 Answers
What to do to prevent the camera from going through colliders with this script 1 Answer