Quantcast
Channel: Answers by "PokeJoe"
Viewing all articles
Browse latest Browse all 8

Answer by PokeJoe

$
0
0
http://docs.unity3d.com/ScriptReference/Physics.Raycast.html The third parameter of the Physics.Raycast() function is the distance, which should be given as a float. By the way, what you have is not an array of Raycasts, but an array of Vector3s, which are only one component necessary to do a Raycast (which is a function, something you do, not an object, something you have). So when you call the function later on, make sure you specify the distance.

Viewing all articles
Browse latest Browse all 8


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>