Hi,
I’m still working my way through the FPS tutorial, and I’ve run into a strange problem. Originally, when the enemy robots fired missiles, they would appear exactly in front of their guns, as expected, because I have placed the gun_spawn object there. It worked fine.
Now however, it doesn’t work anymore. The gun_spawn object is still at the right place - I can see that in the scene view, both during editing and while playing the game. But the rockets appear far below the gun_spawn location. Their X and Z coordinates are correct, but the Y coordinate is way off. Furthermore, the amount that the Y coordinate is off varies, and seems to increase for each rocket fired.
You can see the problem here:
http://runevision.com/multimedia/unity/fps.html
The first rockets fired by the enemies are way too low; the next appear below the ground, so they are eventually not visible.
I haven’t modified any of the scripts, so I have absolutely no idea what could be causing this behavior!
Also, the ragdolls appear at wrong positions too sometimes (I never got that to work correctly), which may or may not be the same problem.
Any idea what the problem is caused by?
Thanks in advance,
Rune