BoundingBox::orientation misleading description

Osmo
Fast Inserter
Fast Inserter
Posts: 104
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

BoundingBox::orientation misleading description

Post by Osmo »

https://lua-api.factorio.com/latest/typ ... ngBox.html
It says orientation is unused, but it is actually used in some places. For example, it can allow to make rotated collision boxes for entities that do not support rotation.
Bilka
Factorio Staff
Factorio Staff
Posts: 3428
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: BoundingBox::orientation misleading description

Post by Bilka »

Do you have an example of it getting used in data stage?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Osmo
Fast Inserter
Fast Inserter
Posts: 104
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: BoundingBox::orientation misleading description

Post by Osmo »

Yes, as i said, it can be used by entities to have a bouniding box rotated by 45°, for example (or some different angle). I think even cliffs in base game do that.
Bilka
Factorio Staff
Factorio Staff
Posts: 3428
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: BoundingBox::orientation misleading description

Post by Bilka »

Thanks, fixed the docs for 2.0.61.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”