I have been working on predictive triangle collision. I created a ray starting at the current position and pointing in the direction of movement. Then I tested for collision between that ray and all the terrain triangles. I borrowed from
this example for getting the triangles from the fbx model and ray-triangle collision. Then, if a collision occurred, I checked if the collision occurred within the distance moved.
No comments:
Post a Comment