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.
  2. Dismiss Notice

Create sticky material or Script

Discussion in 'Physics' started by Breisfm, Feb 2, 2016.

  1. Breisfm

    Breisfm

    Joined:
    Oct 30, 2015
    Posts:
    12
    Hello guys,

    What i'm trying to create is an object that has a sticky material. By creating that material, I'll be able to make a Hook rotate and only let the ball leave when it's 180º rotation is complete.


    Any Idea on how doing that? Can be via c# script too... I just couldn't figure out how to do it!

    Thanks everyone.

     
  2. Harpoon

    Harpoon

    Joined:
    Aug 26, 2014
    Posts:
    20
    You can try making the ball a child object of hook and then releasing it when you want but I don't know if it will inherit the velocity.
     
  3. Breisfm

    Breisfm

    Joined:
    Oct 30, 2015
    Posts:
    12
    It's a possibility. But I've achieved what I wanted by doing an animation to close the space between two points of the Hook, and the opnening this closed space after some few seconds.