I’m just trying to declare a Ray, and am following the same format that is shown in this post here, but for some reason, the comma between Ray.origin and Ray.direction is giving me an error in this code:
void RemoveGroup(){
int i;
for (i = 0; i < capturePosX.Count; i++) {
RaycastHit hit;
Ray ray = (new Vector3 (capturePosX_, 5, capturePosY*), new Vector3 (0, 0, -1));*_
* Physics.Raycast (ray, out hit);*
* if (hit.transform.tag != “board”){*
* Destroy (hit.transform.gameObject);*
* }*
* }*
* }*
Why is this happening?