Thursday, January 9, 2020

Final Submission Update

Unfortunately after the final Hand In was already over I figured out how to make my obstacle avoiding work better. The trick is to add some delay between checking for Obstacles once the Robot registers an Obstacle. So instead of jittering around, because the Movement Direction constantly changes it now follows the Avoid Obstacle Direction for a certain time, since it already knows, that that direction is free. The interval between the checks is defined by the current speed compared to the maximum speed, so the faster the Robot moves, the shorter the interval. The transition between Directions could still be a bit smoother, maybe by using VInterp or something similar.
Here is how it looks:





Also here are all the screenshots from the Blueprint, including updates:

Construction Script

Event Graph

Movement Direction and Obstacle Avoiding Function

Stay above Ground Function

Update Location Function

Update Rotation Function

Generate View Directions Function

Monday, January 6, 2020

Week 15 - Final Submission

Companion Robot Final Submission
For the summative hand in I decided to work a bit more on the Companion Robot project, mainly by creating a warehouse environment. I kept it simple for time and budget limitations. Below are images of the environment creation process






.







Furthermore I improved the robot's flying behaviour slightly, by changing the way it adjusts z location.
Now, instead of trying to stay a certain distance above the ground the Robot takes the Players Z location and tries to adjust to that height. It still traces down, though, to not move through the floor. The obstacle avoiding mechanism still doesn’t work the way I want it to and occasionally the Robot gets stuck or moves through objects. I’d probably have to revisit the entire system.

Improved Update Z Location BP Function

Unfortunately I wasn't able to do anything with the legs, since I know too little about animation blueprints in Unreal and after some experimentation decided to focus on the environment instead.