Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Can't set a joint's Drive Mode (positional/velocity) in 5.5

Discussion in 'Physics' started by raithza, Jan 23, 2017.

  1. raithza

    raithza

    Joined:
    Dec 14, 2011
    Posts:
    19
    I can't find the toggle for setting a joint's Angular Drive to be velocity based or positional in 5.5.

    Here's a screenshot from the manual, showing the option:

    Here's a screenshot of the Configurable joint in 5.50f3:


    Am I missing something here? Bug? Omission?
     
  2. dwaldrum

    dwaldrum

    Joined:
    Jun 20, 2015
    Posts:
    48
    The manual is outdated.

    You don't set an explicit drive mode anymore.

    If you want to target a velocity, you set the target velocity and then a damper value. The force will then be (target velocity - current velocity) * damping value

    So make sure when setting velocity you also set a positive damper.

    For target position same thing, except set a spring value.

    You can set both and this will give you a dampened spring.

    For more information checkout the physX 3 manual on joint drives. They have the formulas there that are used to drive the joints.
     
  3. C0DE42

    C0DE42

    Joined:
    Nov 17, 2018
    Posts:
    1
    example: to achieve bouncing effect set value at the Target Position, Target Velocity and the Y Drive. Screenshot 2018-12-03 at 4.13.32 PM.png