Search Unity

Pick Up Object 2D game

Discussion in 'Scripting' started by Neil_young2k5, Jan 2, 2014.

  1. Neil_young2k5

    Neil_young2k5

    Joined:
    Aug 11, 2013
    Posts:
    11
    I tried to use the Raycast to catch object in 2D scene (sprites) but did not succeed.

    Following the image, I want to get the object that is in the ground and take up to a platform where it will end the stage. $teste.png



     
    Last edited: Jan 2, 2014
  2. ardo314

    ardo314

    Joined:
    Jul 7, 2012
    Posts:
    345
    Just guessing, but i think you are probably casting in the wrong direction.
    Also use Physics2D if you are working with Unitys 2D framework.
     
  3. Neil_young2k5

    Neil_young2k5

    Joined:
    Aug 11, 2013
    Posts:
    11
    I made change but did not succeed.