Greetings all!
I have a small problem that I can't seem to figure out how to fix. I'm developing a combat flight sim and I've gotten to the point of working on the weapons. I have it programmed so that when a bullet strikes the terrain, it triggers a small sprite animation of dust being kicked up, centered on the last known coordinate of the bullet prior to collision detection. My problem is that, due to the velocity of the bullets (25 units per loop,) the dust animation often ends up inside (below the surface) of my terrain model, and therefore, out of view. I am at a loss as to what I need to do to to ensure that the dust animation is always centered outside of the terrain geometry and inline with the bullet's path. Any ideas?
Thanks
I have a small problem that I can't seem to figure out how to fix. I'm developing a combat flight sim and I've gotten to the point of working on the weapons. I have it programmed so that when a bullet strikes the terrain, it triggers a small sprite animation of dust being kicked up, centered on the last known coordinate of the bullet prior to collision detection. My problem is that, due to the velocity of the bullets (25 units per loop,) the dust animation often ends up inside (below the surface) of my terrain model, and therefore, out of view. I am at a loss as to what I need to do to to ensure that the dust animation is always centered outside of the terrain geometry and inline with the bullet's path. Any ideas?
Thanks