[0.16.51] Beam source position is offset by -1y

Post Reply
Boodals
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sun Feb 11, 2018 7:10 pm

[0.16.51] Beam source position is offset by -1y

Post by Boodals » Wed Sep 12, 2018 7:17 pm

When creating a beam with LuaSurface.create_entity, when supplying the beam's source as a position, it gets offset by -1y. Adding 1 to the y coordinate fixes this.

Image

Creating a beam from {0, 0} to {1, 0} should be a straight horizontal line, but it is diagonal. I later spawned a car at 0, 0 to confirm that it is the source position that is offset, and not the target position.
Creating a beam from {0, 1} to {1, 0} draws a straight line.

Edit: I just noticed that enabling show-collision-rectangles draws the rectangle where the line would be if the bug were fixed, so its most likely purely a visual glitch.

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

Re: [0.16.51] Beam source position is offset by -1y

Post by Rseding91 » Wed Sep 19, 2018 7:13 am

Thanks for the report. It's now fixed for 0.17.
If you want to get ahold of me I'm almost always on IRC and Discord.

Post Reply

Return to “Resolved for 0.17”