With the upcoming Medium question deadline, I’ve been hard at work trying to complete as many questions as I can before it’s too late. So far I have 2 medium questions completed, and I’m currently working on the third. I would like to have 4 done in total so I still have quite a bit of work to get through before Friday.
Last week I managed to complete the question involving cameras. We were required to implement 4 different camera angles into one scene, and be able to switch between them on the fly. We needed to have a first-person, third-person, over-the-shoulder, and fixed camera. Before I started, I spent a lot of time contemplating the best way to begin. Initially I tried using a single scene node and multiple vectors to track the positions of all the cameras. But using this method, I continuously ran into problems. Everything kept breaking or just flat out did not work. I later realized a far easier method, in which every camera angle was just defined as a new scene node. I can’t stress enough how much easier this was, mainly because all I essentially had to do was parent all the different camera nodes to the player and they would update automatically when the player object was updated. In the end it saved me from a lot of unnecessary calculations and headaches. I was able to complete this question fairly quickly once I figured this out.
Next up I am going to tackle the AI behaviour question. For this question we’re expected to have 3 steering behaviours along with 1 flocking behaviour. Luckily, we had a question just like this back in first semester of second year. So anyone who completed the question back then shouldn’t have too much difficulty completing this, myself included. I am going to try a multiple class structure for this question. I feel like it would be the best way to complete it, and certainly the neatest. As for the fourth and final question I would like to have done, I have not yet decided which one to go for. At this point I’m just hoping I can get through the AI behaviours quickly. I’ll worry about what comes next once that is completed.