Enhance Surface.find_non_colliding_position

Things that we aren't going to implement
Post Reply
User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

Enhance Surface.find_non_colliding_position

Post by Afforess »

The current Surface.find_non_colliding_position is very useful for finding places to spawn entities, but there are times I want to find positions that won't collide, but also ignore checking collisions with certain types of entities (trees, I am looking at you!).

So if Surface.find_non_colliding_position could take a 5th parameter, an optional list of entity names to ignore when checking for a non-colliding position, it would be very useful.

Right now, the only workaround is to create a list of the entities, store their position/orientation/state, destroy them, call Surface.find_non_colliding_position and then re-create the entities ifif you don't spawn anything. Which is terrible for performance, and a lot of code.

Simcra
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Wed Apr 06, 2016 6:05 am
Contact:

Re: Enhance Surface.find_non_colliding_position

Post by Simcra »

I agree

Rseding91
Factorio Staff
Factorio Staff
Posts: 13250
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Enhance Surface.find_non_colliding_position

Post by Rseding91 »

The entire collision system isn't built in any way that this could be added without completely reworking it and that's just not time that I want to spend for the little gains this might give.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Won't implement”