Page 1 of 1

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

Posted: Thu May 21, 2020 5:05 pm
by qqwertt
like, for an assembling machine
every collision box size I try ends up with an even-tiled entity.

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

Posted: Thu May 21, 2020 5:10 pm
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

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

Posted: Thu May 21, 2020 5:12 pm
by qqwertt
ah thanks!! Im so dumb :cry:

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

Posted: Fri May 29, 2020 6:06 pm
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.