Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Physics: Springs and Dashpots

Discussion in 'Scripting' started by marty, Jan 18, 2006.

  1. marty

    marty

    Joined:
    Apr 27, 2005
    Posts:
    1,170
    Does Unity's physcs engine support springs or dashpots?
     
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Yes we do support spring joints.

    Component->Dynamics->Spring Joint

    The standard Assets also have a quite useful script which when added to the camera allows you to drag around any rigidbody using the spring.
     
  3. marty

    marty

    Joined:
    Apr 27, 2005
    Posts:
    1,170
    Awesome! Thanks, Joe.

    How about dashpots?
     
  4. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    The physic material in unity, allows you to make it springy.
    A springy physic material makes colliders land softly on top of each other and sink into each other if more force is applied.

    This is essentially the concept of a dashpot.