What's the collision box size for a 3x3 entity??

Place to get help with not working mods / modding interface.
qqwertt
Burner Inserter
Burner Inserter
Posts: 13
Joined: Fri May 08, 2020 6:26 pm
Contact:

What's the collision box size for a 3x3 entity??

Post by qqwertt »

like, for an assembling machine
every collision box size I try ends up with an even-tiled entity.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: What's the collision box size for a 3x3 entity??

Post by darkfrei »

qqwertt wrote: Thu May 21, 2020 5:05 pm like, for an assembling machine
every collision box size I try ends up with an even-tiled entity.
collision_box = {{-0.4, -0.4}, {0.4, 0.4}} -- 1x1
collision_box = {{-0.7, -0.7}, {0.7, 0.7}} -- 2x2
collision_box = {{-1.2, -1.2}, {1.2, 1.2}} -- 3x3
Last edited by darkfrei on Thu May 21, 2020 5:13 pm, edited 1 time in total.
qqwertt
Burner Inserter
Burner Inserter
Posts: 13
Joined: Fri May 08, 2020 6:26 pm
Contact:

Re: What's the collision box size for a 3x3 entity??

Post by qqwertt »

ah thanks!! Im so dumb :cry:
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: What's the collision box size for a 3x3 entity??

Post by bobingabout »

it doesn't have to be those exact numbers, but anything with a size somewhere between {{-1.0, -1.0}, {1.0, 1.0}} (max size for 2x2) and {{-1.5, -1.5}, {1.5, 1.5}} (max size for 3x3) will be a 3x3 entity.

you can also do crazy things like... {{-1.5, -1.0}, {1.2, 0.7}} and you'll end up with a 3x2 entity (Like the boiler)... but I don't recomend non-symetrical collissionboxes, unless you're trying to block walking access for pipe connections on one side.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Modding help”