This is one of those questions that I think everyone knows the answer to except me. I'm currently looking into doing dynamic damage effects for spaceships, and I've decided on a method. If it works out, you all get free screenshots ;)
So, I'm going to be removing triangles from spaceship meshes (I hope...) but before I do I'd like to generate some debris as though part of the hull is being "blasted out". To do that, I'll need to know which direction to throw debris in.
I guess I can start with the centrepoint of the triangle, which will be the average of it's three vertices, right? Okay, then. Now I need to know what direction to throw the debris in. Is there some way I can get that, maybe in the form of a vector?
EDIT: Oops, comedy "dong" reference in the thread title. Apparently can't change it with the edit function so you're all stuck with it. This is just to let you know that. And to let you know that I know. So now you know that I know, and I know that you know that I know.
So, I'm going to be removing triangles from spaceship meshes (I hope...) but before I do I'd like to generate some debris as though part of the hull is being "blasted out". To do that, I'll need to know which direction to throw debris in.
I guess I can start with the centrepoint of the triangle, which will be the average of it's three vertices, right? Okay, then. Now I need to know what direction to throw the debris in. Is there some way I can get that, maybe in the form of a vector?
EDIT: Oops, comedy "dong" reference in the thread title. Apparently can't change it with the edit function so you're all stuck with it. This is just to let you know that. And to let you know that I know. So now you know that I know, and I know that you know that I know.