- Home /
Can't rotate a configurableJoint with angularVelocity in 5.3
I have a game in Unity 4.7 that uses many configurablejoints as motors. It no longer works in 5.3. For example. I have a static cube (cube1) connected to another cube (cube2) along the X axis. cube2 has a configurable joint attached to connectedbody cube1.
I set a targetAngularVelocity 10,0,0 JointDriveMode.Velocity and RotationDriveMode XYandZ In 4.7 it spins fine.
I can't seem to duplicate this in 5.3. I set the other parameters the same. The cube will not rotate in 5.3 There is no jointDriveMode if I query it, it is set to "none" and it cannot be set. How do I get the cube to rotate with a velocity in 5.3.
Answer by dwaldrum · Jan 22, 2017 at 09:44 PM
Make sure that you have a position damper value set in the drive.
If you check the docs for PhysX under the drive settings (http://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/Joints.html) you'll see the formula used to calculate force:
force = spring * (targetPosition - position) + damping * (targetVelocity - velocity)
So without a damping value the force will always be zero when using velocity only.
Your answer
![](https://koobas.hobune.stream/wayback/20220612092636im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Set ConfigurableJoint targetAngularVelocity towards targetRotation 0 Answers
JointDriveMode is Obsoleted on Unity 5.3, so what now? 2 Answers
Components jittering - Configurable joints 0 Answers
2D Platformer and Character Creation 0 Answers
Using a ConfigurableJoint to move an object to a postion and rotation. 0 Answers