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
Model Question (not how to load them)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement