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

No comments:

Post a Comment