🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Model Question (not how to load them)

Started by
9 comments, last by Mike00 23 years, 11 months ago
Ok...... You do have a list of local coordinates and world coordinates, don''t you?

b---c
| |
| x |
| |
a---d


You should have some sort of object like this that makes up the end of your gun, right? Take the local coordinates and find the average location of all those points that make up the end of the gun. This will be your origin point for the shot. Store this postion in it''s own local coordinate.

Next, you should have to find the normal of the poly with x on it find where you are shooting.

You can precompute all the stuff up to this point.

Now all you should have to do is translate that normal and point of firing origin when you move your craft and it should work properly.

I think this should work....


mheyman

This topic is closed to new replies.

Advertisement