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

raycasting for other purpose?

Discussion in 'Scripting' started by ManAmazin, Nov 10, 2014.

  1. ManAmazin

    ManAmazin

    Joined:
    Aug 7, 2013
    Posts:
    246
    hey guys i was wondering if ray-casting can be used as some type of dodging system? like checking the range of the projectile, and when the projectile is at a certain range, then the player can either press a button to dodge or even catch/deflect projectile. also maybe knowing which side the projectile is closes to so its knows which way to dodge.

    My first time thinking of using ray-casting this way so was wondering if anyone could provide a basic example of said topic to get me started?
     
    Last edited: Nov 11, 2014
  2. recon0303

    recon0303

    Joined:
    Apr 20, 2014
    Posts:
    1,634
    Please re-read and explain again please.
     
  3. ManAmazin

    ManAmazin

    Joined:
    Aug 7, 2013
    Posts:
    246
    was in a rush sorry....edited