Cars on Mars... portal logic can be quite tricky!
ideally both camera and car pass the gate at once...
but what if car passes gate and camera not? or the opposite? ...solved here by camera switching to car-world after some delay #carsonmars #gamedev #indiegame

@flockaroo fancy effects!

What about treating the portal like a physical barrier? When there's a wall between your camera and vehicle, you might already be reducing the camera distance to ensure the vehicle isn't occluded. If you use the same logic with the portal, the camera will have to zoom in tight enough to the vehicle that it will pass through the portal too