I'm trying to get a PersonEntity to walk to a CarEntity and compare the PersonEntity's location to the CarEntity's location. For simplicity's sake the location of each is hard-coded. The aim is that once the PersonEntity reaches and 'enters' the CarEntity they will both drive to a destination.
My issue is that I'm not sure how to get the location of PersonEntity while in a query that is using the CarEntity and vice-versa. Currently I have an EnterVehicleComponent which has a variable Entity...
How to compare two different entities' locations
My issue is that I'm not sure how to get the location of PersonEntity while in a query that is using the CarEntity and vice-versa. Currently I have an EnterVehicleComponent which has a variable Entity...
How to compare two different entities' locations