forst srry for my english,
im trying to get a point in the space from a ray, but im casting the ray from a touch, so i seach in the scrpt reference and get this code:
i try to use: RaycastHit.Point for get the point in the space, but this dosnt work...
any can help me whit this?
i really dont understan this line of code, and there is the problem:
You should define the origin and direction of the ray you've created otherwise the raycast will not have a start and a direction Vector3. Also, you should use a RaycastHit in order to obtain the collision details.
The code will look like so: