View Single Post
  #2  
Old 09-11-2006, 02:36 PM
pbeeson pbeeson is offline
Member
 
Join Date: Aug 2006
Posts: 31
Strange. I was putting the viewpoint inside of an avatar and using that avatar as the body to detect for collisions. I was doing the 180 line intersections because I was simulating a laser range finder which returns distances to objects in a plane. The laser was not inside the mesh of the avatar, but very close to its front. None of the 180 rays ever touched the body enclosing the viewpoint; however, if I make the avatar that the viewpoint is inside of not visible, then this fuction speeds up a bit by a factor of 2 (0.08 seconds). This is weird to me, but I can live with weirdness.

I still think that 0.08 seconds to calculate 180 intersections seems a bit slow, and would like to know if there is a faster way to cast rays and get the locations (or distances) of the intersection points in the world.
Reply With Quote