Page 1 of 1

[0.13.13] A lot of inconsitency with curved rail

Posted: Tue Aug 02, 2016 12:28 am
by Lejving
Image

Upper half with walls: a train will hit all these walls (yet placeable). Possible more places, but these I could find.

Bottom half: all except for one can only 3 medium poles be placed, that one there's 4 of them. Does not look like a train will hit it, but it's still inconsistent.

Blueprint is also kind of weird? Looks ok to place, but it won't place that last pole

Image

Re: [0.13.13] A lot of inconsitency with curved rail

Posted: Tue Aug 02, 2016 6:27 am
by Rseding91
Yes, this is because we use square bounding boxes for a curved entity. There's no perfect solution for it yet that doesn't break a bunch of other entities.

  • If the rail bounding boxes are increased they start to collide with each other and you end up with rails that merge physically but not visually.
  • If the wall bounding boxes are increased you end up not being able to walk between walls and a lot of entities
  • If the electric pole bounding boxes are increased you end up not being able to walk between most entities and electric poles
One solution that might work slightly better is something we have slated for 0.14: making the curved rail 2 different entities so each would have its own bounding box instead of 1 entity with 2 imperfect bounding boxes.

Re: [0.13.13] A lot of inconsitency with curved rail

Posted: Tue Aug 02, 2016 9:51 am
by Rseding91
Actually now that I've spent some time thinking about this I think I have a solution that will fix these issues forever :)

So, fixed for 0.13.14.

Re: [0.13.13] A lot of inconsitency with curved rail

Posted: Tue Aug 02, 2016 1:35 pm
by Lejving
Rseding91 wrote:Actually now that I've spent some time thinking about this I think I have a solution that will fix these issues forever :)

So, fixed for 0.13.14.
Great! :)