Original Post
I just have a quick question that I was wondering if someone could help me with. So I have my collision function working for a point on triangle collision. But I want to expand this to have the object bounce off the triangle. I'm trying to write a function that takes in these parameters: Vec3 &InitialPos, Vec3 &InitialVel, float DeltaTime, Triangle &Tri, Vec3 &FinalPos, and Vec3& FinalVel. I need to insert the final position and velocity into the last to params. I figure its something like get the triangles surface normal, and normalize the initialVel, then crossproduct those to get the new velocity is this right? If someone could help me I would greatly appreciate it