I put together a simple system for the enemy fighting/chasing AI. They constantly try to align their direction vectors with the players position, but they only have a certain turn speed. Once they are within a reasonable range of setting their sights on the player, they start shooting. It still has a couple of glitches, but it's a good start I think. For example, the enemy doesn't stop firing just because one of it's friends gets in the way!
I also fixed the shield problem we were having last weekend. It was actually a larger problem than I thought because it wasn't just affecting the shields. Things were being drawn in a weird order, regardless of what order they were set up to draw in. It turns out that there were problems with the Depth buffer because it was getting set to a value in one object that was throwing off everything that was being drawn after it.
No comments:
Post a Comment