top of page

Morning report


This image shows the current state of the AI. Good, isn't it? I've had to do some reworking, and didn't get much time over the weekend. One of the things replaced are ray-casts, which trace a line from an object (space ship) in a direction and reports what objects if any are hit by that line. This is the usual way to test if a ship is heading towards a rock, to avoid it. These lines have no width though, which causes issues. I worked a concept of dual rays, one either side of the ship, but gave that up for a box cast which traces a box. You can see the yellow outline of a box traced from a ship above, which reports any objects found inside its volume. Boxes are harder to work with, and Unity provides no way to visualise them which really doesn't help! Thankfully HiddenMonk provided debug drawing code here.

With my new box-casts in, I now need to smarten the AI so its better at steering around objects. To help follow what's happening, I'm drawing lines for their paths and various dots for their different objectives and targets. Lots of lines... Lots of dots... I'm not sure it's entirely that useful. ;)


Featured Posts
Check back soon
Once posts are published, you’ll see them here.
Recent Posts
Archive
Search By Tags
No tags yet.
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page