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.
i know that,i have raycast script,but when i add box and rigidbody ,when i shoot it,nothing happens.
i want it ,like when physic material hit it,it rolls away.