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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Raycast hit

Discussion in 'Scripting' started by Dino1997, Sep 25, 2011.

  1. Dino1997

    Dino1997

    Joined:
    Nov 8, 2010
    Posts:
    30
    hello,im making fps game,and i dont know how i can make when raycast hit, for example box,it rolls away...if somebody can explane to me, it would me greatful. :)
     
  2. DanielQuick

    DanielQuick

    Joined:
    Dec 31, 2010
    Posts:
    3,137
  3. Dino1997

    Dino1997

    Joined:
    Nov 8, 2010
    Posts:
    30
    i know that,i have raycast script,but when i add box and rigidbody ,when i shoot it,nothing happens.
     
  4. Dino1997

    Dino1997

    Joined:
    Nov 8, 2010
    Posts:
    30
    i want it ,like when physic material hit it,it rolls away.
     
  5. DanielQuick

    DanielQuick

    Joined:
    Dec 31, 2010
    Posts:
    3,137