Search Unity

DampedTransform: Maximum distance from target

Discussion in 'Animation Rigging' started by joshcamas, Aug 20, 2019.

  1. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    1,277
    Hello!

    One helpful feature that would be amazing if added to DampedTransform at some point is being able to define a maximum distance from the target, since when the object is moving quickly, it makes the bones many many meters apart, which is awkward. :))

    Thank you!
    Josh
     
  2. simonbz

    simonbz

    Unity Technologies

    Joined:
    Sep 28, 2015
    Posts:
    295
    Hi,

    We want to avoid adding too many options to the core set of constraints to keep them as efficient and simple to understand as possible.

    Animation Rigging is a package we intend users to extend as they see fit. If a constraint is not doing what you'd like, it should always be possible to write your own and tailor it to your needs!

    Without modifying DampedTransform, you could create a constraint to limit the distance in between a source and its constrained object and have it evaluate after your damping. In doing so, you'd be able to reuse that new constraint in other parts of your rig with or without DampedTransform.
     
    joshcamas likes this.
  3. joshcamas

    joshcamas

    Joined:
    Jun 16, 2017
    Posts:
    1,277
    Fair enough, I'll try doing the latter solution, thank you :))