Closed Skwizzy closed 7 months ago
With the suggestion from Dan W I have changed the logic for how the distance of loot is calculated. Previously, the actual destination the bot would move to was calculated in a separate logic layer than the FindLootLogic. I have moved this logic to the FindLootLogic layer so than now when a collider has been detected within the scanning range, we calculate the position the bot will move to and save it in the LootingBrain. Using this position, we can calculate the distance of the path the bot will take to reach the item. This length must be less than the detection radius for the item to be considered lootable
Changes found here: 473ed41
Summary from DanW: