Alkan
|
  |
| Joined: 04 Dec 2008 |
| Total Posts: 907 |
|
|
| 15 Nov 2013 06:55 PM |
I'm making a 3D GUI engine, and I've run into an issue I can't solve. I'm trying to make the end points of the ray that will scan the world for collisions
for y=1, 20 do for x=1, 20 do lookVector = cameraPosition + CFrame.Angles(math.rad(rotateY+ y), math.rad(rotateX+ x), 0).lookVector*30
end end
The lookVector should create a rectangle that's in the shape of a sphere, so it's like drawing a rectangle on a globe, but at certain rotateX/rotateY numbers, it will twist into a bowtie. |
|
|
| Report Abuse |
|