isOnGrid function only performs the car center node check, it doesn't perform any car area check, which may result issue like picture below.
To solve this issue, we can simply do some modifications in collisionDetection.cpp for CollisionDetection::configurationTest function:
-- letting the collision check return false if any car area is out of the map
isOnGrid
function only performs the car center node check, it doesn't perform any car area check, which may result issue like picture below.To solve this issue, we can simply do some modifications in collisionDetection.cpp for
CollisionDetection::configurationTest
function: -- letting the collision check return false if any car area is out of the map