[General] Make Building Pathing Texture Rotate

Not sure if this is already a thing or not

I am making custom farm structure. I have already got the model settup and working (for the most part... had to kludge it by making the crops a seperate model (and having a trigger place it for me when u create main structure, and a trigger destroy it when you destroy main structure) because it wouldnt let me use the model when i combined them (it would crash)

Anyway. My next step is making a custom pathing texture for it. I originally was going to just make it a bigger version of the "circle of power" so units could pass over it, but it still collided with buildings. However, in deciding to do this, I am wondering if I cant place collisions on the buildings.

The reason I question this is because I apply random rotation to the model when built. I am wondering if this pathing texture ALSO rotates when the structure does?

Im guessing not, but a man can dream <3
..........................

If this doesnt work out, I am going to try just placing a dummy unit with a collision size matching the structures, at their locations. But i REALLY dont want to have to do the math to find out how to make their offset from the origin be modified by sin/cos math so they are offset in a direction determined by buildings rotation...

Might have to bite the bullet and do that anyway though, as i am considering making it so the structure also has dummy units on it that are animated as farming. Alternatively i could just make like 9 different pathing textures and have it so the 'random rotation' randomly selects from 9 different possible options, then places a structure with the correct pathing map that correlates to that rotation

Attached is an example of these farms. 3 of them are placed in this image. Eventually I plan to make there also be variants/upgrades

I am planning to do this for most structures in the game, as I really like the look of conglomerate structures. And I have ALWAYS hated farms in this game just being a house. And even more so - i hate that they are used as walls.

ExampleFarms.png
 
It technically can, but I believe it can only flip the pathing map horizontally once the facing angle has changed enough (every 90 degrees). It won't update it for smaller increments. For example, you can preview it by doing the following:
  1. In the terrain editor, press "P" to preview pathing (or go to View > Pathing - Ground)
  2. Place the building with your desired pathing map/model onto the map.
  3. In the object editor, select your building and uncheck "Stats - Is a building".
  4. Back in the terrain editor, double-click your unit and you can update its facing to see how its pathing map changes.
Here is an example of the two variants of the pathing map for a building with the archway model/pathing map:
1745879407719.png
1745880018880.png


So in your case, you probably would need to bite the bullet and simulate the pathing with dummy units.
 
Top