#IGBR: Drill ejecting ore in wrong location
1 messages · Page 1 of 1 (latest)
Might be the corner?
Yes but of the wrong tile. If you remove the first conveyor belt it is not spawning any ore.
Stumbled upon this multiple times now but I'm not sure how to reproduce this yet. So wanted to secure the save file.
Can you reproduce it with that corner maybe?
Seems to be the specific location of the drill in relation to the landing spot of the Magpie. Counted from the rightmost stockpile: 8 north, 1 west.
A drill in that location and in that rotation is not linking the conveyor belt to the south in its BuildingConnections on build. For some reason it is only linking any conveyor belt offset 1 tile to the east.
Any ideas on where this might stem from @keen garden?
More likely than anything it is just a general float issue figuring out what grid space we are actually trying to connect with. I'm guessing when doing the connections we are just barely in the next grid tile so that is where we end up looking
Doesn't look like it but brought me on the right track. 👍 Here's the OverlapAabb the drill is checking on build. Gonna check how it might've gotten in the wrong location next.
It's in the BuildBuildingConnectionsSystem
@keen garden You were right. It really was a floating point error. The calculated SnappedGridPositionFromRotation jumped to the wrong tile in some instances. I added a slight safety offset for the position check to prevent this. => Bug fixed ✅