Search Issue Tracker

By Design

Votes

5

Found in

5.0.0f4

Issue ID

677214

Regression

No

[ConfigurableJoints] Target Velocity does not move object unless Position Damper greater than 0

Physics

-

How to reproduce:

1. Open attached project
2. Open scene test.unity
3. Select Cube 1
4. Set the X vector of the Target Velocity of the Configurable Joint to any number.
- A number that's 1 or larger should be fine in order to see movement
- Notice how nothing happens and the cube does not move
5. Set the PositionDamper of XDrive to a number that is greater than 0
- The number should also be no smaller than 0.05 (approximately)
- Note how the cube starts moving
- Setting the number to less than ~0.05 causes the cube to only move slightly and stop
- Rapidly changing between two numbers (for instance 0.02 and 0.03) causes the cube to accelerate

- By Design: The drive is a proportional derivative drive, which applies a force as follows: force = spring * (targetPosition - position) + damping * (targetVelocity - velocity). So if Position Damper is zero, damping is zero, therefore the force is zero and the cube will not move.

Comments (5)

  1. Romaleks360

    Mar 27, 2019 22:46

    why there's nothing about it in the documentation?

  2. fractalfriend

    Aug 15, 2017 20:38

    This is still occurring in in Unity 5.6.0f3

  3. ILICH

    Jul 03, 2016 23:18

    JKRAPTOR, you can apply torques to bodies connected with the joint using AddTorque method as in this example https://gist.github.com/Kayli/4c465ebc8fa636b42015dec58dcd3655

  4. jkraptor

    Oct 29, 2015 16:53

    This really needs to get fixed. What has the positionDamper to do with Velocity Drive anyway?
    I cannot get a configurable joint to work reliably with bugs like this in the system.

    Why is it taking Unity an entire year to get the Hinge and Configurable Joints working properly?

  5. ThomasEgan

    Mar 17, 2015 08:03

    This issue also occurs with the angular drives when targeting angular velocity

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.