- Home /
Oneway pulling with joint
I have 2 Cubes connected by a distance joint, both objects have a rigid body. Lets call them CA and CB. If move CA 1 unit left CB gets moved 1 unit left, if i move CB one unit right CA gets moved one unit right etc. But i only want CA to be able to move CB and refrain CB from moving around while still being able to rotate about the joints position.
A more imaginable example: A tank and its turret, the tank moves with the turret, but the turret is still able to rotate without being able to pull the tank by moving.
I sadly cant disable the movent off CB/Turret because its rotation is defined by another object(CC) connected to it by a joint which is moving around. If you need it i could provide some video footage.
To be fair, a tank's turret DOES pull the tank as it rotates. However, the body of the tank vastly outweighs the turret, so any imbalance is mitigated to the point where it's hardly apparent.
Is this a problem which could/would be solved by relative mass of component parts, or is it significant/important for the motion to have zero influence on the main body?
The example with the tanks is just so you understand the konzept better, in my game CA is a torso ,CB an arm and CC a hand. In the game you controll the hand by analogstick ,so the arm rotates because it is connected with a joint to the hand. but as it is now the hand just can pull the whole body after it. the hand uses transform.lerp, so changing weight values wont do anything. i tried using addforce on the rigidbody, but it accelerated faster and faster to the point of flying over the whole screen.
Your answer
![](https://koobas.hobune.stream/wayback/20220612083616im_/https://answers.unity.com/themes/thub/images/avi.jpg)