I am trying to draw lines from each vertices of a mesh. All the lines will be same direction. It seems quite easy normally, but i thing i am missing something here. As you can see at the example PG , not all the lines starting from vertices and/or not in same direction.
I tried to create a cylinder and used vertices to create lines system.
Ok , i found what i missed. I miss guessed the Vector3.FromArray function operation.
I am sending the corrected version if anyone wants to see.
It seems to me they are all in the same direction:
Or do you want to draw the normals?
Thanks for your reply. My initial target was using this lines as rays, to detect collusion on my scene. Standart intersectMesh is not solving my requirements, since my objects are hexagons, circles etc…
But the good thing is my scene almost flat, all object are on same plane. So , i thought if i make some ray arrays from object vertices, then i can use them to detect collisions and distances.
So far, i couldn’t do totaly reliable solution. :))