title: Raycast but ignore the collider of the gameobject it's being called from
body: <p>I want to send a raycast but not have it collide with my player. </p>
  
  <p>How can I do this?</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class ExampleClass : MonoBehaviour {
      void Update() {
          Vector3 fwd = transform.TransformDirection(Vector3.forward);
          if (Physics.Raycast(transform.position, fwd, 10))
              //hit something            
      }
  }
  </code></pre>