jawslouis / MakePlacePlugin

109 stars 45 forks source link

Changed MatchLayout function to prioritize the closest HousingItem #2

Closed RokasKil closed 2 years ago

RokasKil commented 2 years ago

Changed MatchLayout function to prioritize the closest HousingItem when matching with HousingGameObject. Basically it just orders candidate HousingItems by their squared distance to the HousingGameObject and takes the first one. The logic for transforming exterior coordinates to local coordinates was taken from the LoadExterior method.