Search Unity

Raycast problems

Discussion in '2D' started by OneSketchyGuy, Jan 14, 2019.

  1. OneSketchyGuy

    OneSketchyGuy

    Joined:
    Oct 27, 2016
    Posts:
    14
  2. Nitrousek

    Nitrousek

    Joined:
    Jan 31, 2016
    Posts:
    38
    Instead of weird maths, create placeholder objects that function as start and end positions for raycasts. Other than that, use debugging for solving calculation problems.
     
  3. OneSketchyGuy

    OneSketchyGuy

    Joined:
    Oct 27, 2016
    Posts:
    14
    @Nitrousek Thanks, but I fingered it out. I was using

    Debug.DrawRay(start, end, Color.green); which is retarded for some reason. but I should have used

    Debug.DrawLine(start, end, Color.green);