Hi, thanks for your quick reply. I tried out making the direction vector only 1 in the y. Doesn't work.
Are you sure that, when going down the y-axis by the amount of tool.getTransformedCenter().y*-1 units (which is a strange way to give a translation IMHO...are you sure that this is your intention?), there is a collision?
Yes, I'm positive. I can visually see there is one. What I am using this for is in terrain modification. What happens is there is a cylinder at a varying value x, -2100y, and a varying value z. The method checks to see if there is a collision if the cylinder were to move all the way down the y axis. Lying in the xz plane is the terrain that need modified. If there is a collision, the collision listener gets the affected polygons and through a round-about process modifies their vectors.
Using sphere-detection the console prints out the statements in the methods that get called in event of a collision and I can see the results. With the ray-detection nothing happens. Well, the int from the checkForCollision() is -100. So, if I understand correctly, that means no collision. Hope this helps. I am lost...
I change absolutely nothing in any other area of code when I switch from sphere to ray detection. Except for commenting out the sphere call. This should work right?
Jman