Description
Abstract
This pull request removes the updateTraveledDistance
function from several entity classes. The function has been integrated into the job list management system for better cleaner code.
Background
The updateTraveledDistance
function was previously implemented in multiple entity classes. However, a more efficient and centralized method to track traveled distance through the job list system was introduced. This refactor eliminates redundant code and ensures consistency across different entity types.
Details
The following changes were made:
- Removed the
updateTraveledDistance
function fromEntityBase
,EgoEntity
,PedestrianEntity
, andVehicleEntity
. - The traveled distance is now updated through the job list system in
EntityBase
using a new job that calculates the traveled distance based on linear velocity. - Updated unit tests by removing tests specifically for
updateTraveledDistance
as the functionality is now handled by the job system.
References
N/A
Destructive Changes
N/A
Known Limitations
N/A