Search found 4 matches

by Jimmy
Sat Jun 21, 2008 12:56 am
Forum: Questions and Help
Topic: Raycasts and Terrain
Replies: 8
Views: 10908

Re: Raycasts and Terrain

Didnt see your edit, ill try using the multi hit version. Thanks for your help The exception happens when the camera is in constant collision with the terrain (using the raycasts) and then i move the player around for about 10-15 sec System.IndexOutOfRangeException was unhandled Message="Index ...
by Jimmy
Sat Jun 21, 2008 12:08 am
Forum: Questions and Help
Topic: Raycasts and Terrain
Replies: 8
Views: 10908

Re: Raycasts and Terrain

So I tried using the terrain.raycast and it works most of the time, but I can get the camera to go thru the terrain and once it is thru it wont detect hits anymore. The other thing is every once an a while it will throw an index out of range exception in the terrain.raycast. I suspect it is somethin...
by Jimmy
Fri Jun 20, 2008 11:20 pm
Forum: Questions and Help
Topic: Raycasts and Terrain
Replies: 8
Views: 10908

Re: Raycasts and Terrain

Duh... thanks a lot, I will give the terrain.raycast a try.
by Jimmy
Fri Jun 20, 2008 10:55 am
Forum: Questions and Help
Topic: Raycasts and Terrain
Replies: 8
Views: 10908

Raycasts and Terrain

Hi I am trying to use raycasts to check if terrain is between my camera and my player (or the camera went thru the terrain ect.), and from what I can tell your Toolbox.raycast can only test against entities. It gives me an error saying terrain cannot be converted to entity when I try to raycast. Is ...