Just started with this thing. Using dark basic classic (on day 3).
I've got a gun. It rotates on it's Y axis. When it shoots, the projectiles travel in just the direction they are supposed to (harder than I thought that would be). When the gun shoots, it makes a 3d sound. When the shots hit something, they make a noise too. And when the shots (lasers) fly over the ground, they make a neat lighting effect (which I'm really pleased with since I only have a limited number of light sources). So I'm new, but I'm workin' things out.
The next thing I want to add to my little dealy here is bullet holes.
I'm using a textured plain to accomplish this. Is this the best way?
I've got the location and orientation of my projectile, and the location and orientation of my target.
My target is currently a cube with a size of 3 units, and that has me puzzled enough. But what if my target isn't a cube? What if it's a sphere, or an irregular polygon?
What I DON'T have, and in fact, don't know how to get, is the location of impact. I'm not sure having that would solve all of my problem, as I don't know how to figure out the orientation of the plain once I've got the point of impact.
I'm not even sure what I need to ask for really... if someone can toss an explanation of my problem at me and a few formulas, that'd be great.
I've got some experience writing code, but I dropped out of highschool about as soon as I got through the front door. As a result, this math is a lot to chew on.
Drac - X
_________________
Excerpt from 'A Day in the Life of Some Guy' ©2003