Flat collectors DO harvest crops, but the farm detection ray is being cast at a 90 degree angle.
Flat collectors look for crops to harvest in the wrong direction.
This is probably related to the previous issue flat collectors had with a rotated collection hit box. The item collection hitbox is now correct, but the farm detection ray is being cast in the wrong direction.
BuildInfo correctly shows the improper farm detection angle.
I have recorded an example of the behavior in a completely unmodded save.
The save from the video is attached.
Poking at the game's IL, Sandbox.Game.Entities.Blocks.MyCollector.UpdateBeforeSimulation100 is hardcoded to use m_collectorDummyMatrix.Forward for the farm detection ray. This is correct for the other two collectors, but the flat collector is oriented such that the business end points along the "Up" vector.
I have the same bug
Unless I'm missing something with regards to the coordinate systems involved here, it seems a trivial fix would be to replace
withas all collectors' detector_collector dummies have translations in the direction the farm detection ray should be cast, and you're already normalizing the result as it is.
Unless I'm missing something with regards to the coordinate systems involved here, it seems a trivial fix would be to replace
withas all collectors' detector_collector dummies have translations in the direction the farm detection ray should be cast, and you're already normalizing the result as it is.
Replies have been locked on this page!