12.02.2014, 16:49
It defines the laser as a line p1,p2 then you just specify the sphere x, y, z and radius to check for an intersection. If you wanted to have a lot of areas then you would need to create an iterator to keep track of the areas the player is in then do the collision checks.