Anybody can help me with linepick ?

Blitz3D Forums/Blitz3D Programming/Anybody can help me with linepick ?

OK, I can't test where I am now, so I'm going to have a guess at this for you:

Do two LinePicks at 45 degree angles in the direction the ball is going- (One to the left and one to the right)

Get the Local X coordinate of the pickedx() using Tformpoint.

if you add the Local X of the left collision to the local X of the right hand collision you should end up with a value you can use to turn the object by to avoid hitting things.

I use this technique as part of my Car AI in the racer and it works well :)


Now I just hope this is of use as I can't tell what your actually after ;)