I've been working on a physics engine (I posted alot about it at the "Mod to Miracles Verlet Physics" in the Advanced 3d forums). Anyway, I just redid the whole system with a much better foundation, and decided that Blitz collisions can't do what I want as far as collisions go.
Basically, all I need is a line segment to triangle collision checker that returns some extra info. It needs to be extremly fast, as it would be run 100s of times every frame. I have no idea how to check if a line segment is going through a triangle, other than linepick, but sadly, linepick is a little slow for my purposes.
Anyway, I know this is a fairly demanding list of features, but it's what the system needs.
1)Whether or not the line goes through the triangle
2)The closest place on the triangle to the 2nd point of the line segment
3)The point at which the line intersects the triangle
4)Fast, Fast, Fast! If you can sacrafice a little bit of accuracy for a ton of speed, do it!
Please tell me if anyone has a way to achieve one of these or, hopefully all of them. I'll be posting this same post on blitzcoder, so hopefully I'll get a good solution.
Thanks for any useful Reply!
Basically, all I need is a line segment to triangle collision checker that returns some extra info. It needs to be extremly fast, as it would be run 100s of times every frame. I have no idea how to check if a line segment is going through a triangle, other than linepick, but sadly, linepick is a little slow for my purposes.
Anyway, I know this is a fairly demanding list of features, but it's what the system needs.
1)Whether or not the line goes through the triangle
2)The closest place on the triangle to the 2nd point of the line segment
3)The point at which the line intersects the triangle
4)Fast, Fast, Fast! If you can sacrafice a little bit of accuracy for a ton of speed, do it!
Please tell me if anyone has a way to achieve one of these or, hopefully all of them. I'll be posting this same post on blitzcoder, so hopefully I'll get a good solution.
Thanks for any useful Reply!