Collision/Hitbox in Gimkit

In this guide i would like to talk about Collisions/Hitboxes in Gimkit, and tell what Hitboxes are in Gim itself, as well as in items like lasers, zones, and something else.

this guide can be very useful if you make maps like Blackhole927 “impossible platformer” map where every meter is needed and ACCURACY is important for the map to be completed

:red_square: : Gim size
:purple_square: : hitboxes

Part 1 | Device

Zone

I experimented a bit and got hitboxes in height (Y)

image
Um… you might think that something is wrong here, but unfortunately that’s how it is, I want to say in advance that for some reason the hitboxes with lasers are completely different

Let’s now measure the width


After 20 minutes of trying to find an almost perfect hitbox, I got something like this.

image

and finally let’s find out the almost exact point of the hitbox

image

yes, I’m serious, this is Hitboxes in the zone. If you don’t believe me, you can read this… guide?
Pseudo-Hitboxes: A New Way To Play?

after experimenting a bit i found out that these are plus or minus hitboxes in High, this is what it looks like, now you know that the Gim zone has very small hitboxes, i really have nothing to say about them, i can find all the information here Collision detection - Wikipedia, it’s pretty easy to understand, and i don’t think you need to be an instein to understand it, but let’s get to the lasers.

Laser

Lasers:

as you can see the laser hitboxes are much bigger than the zone
let’s move on to Y


as we can see it turned out to be tic-tac-toe!
and Hitboxes are muchoooooo bigger than the zone, I wonder why it works like that?

lasers showed an interesting result, lasers have a hitbox bigger than Gim itself, although most likely, you will say that this is not so, and you are partly right, since I made the hitboxes a little bigger for a reason that is difficult to explain, but in a word it is because of the editor. and so it is in fact, lasers are a little bigger than Gim

Trigger

Triggers certainly stood out because their Collision is quite strange, it has a rectangular shape, I wonder why they do it like that?

Teleport

I found the distance in length (X) now I need to find Y and connect them into one


I found it and cool! now let’s put them together

image

That’s all for now, I’ll add other devices later, but for now that’s all I need, go ahead. Let me know if you see any errors!

7 Likes

Oh my gosh I think ur wrong but then again it is late rn and I’m tired alo happy birthday!

2 Likes

In theory, you could create a laser pseudo hitbox with a trigger, laser, wire repeater pulse block code, and the checker to develop a smaller hitbox, you just have to make the wire repeater negate the damage in the block code through pseudo HP

1 Like

It’s an interesting theory and someone should try it

Nice! I would think the teleport device uses the second hitbox as well?

1 Like

yes. someone should check, though, im not 100% sure it works

Yeah I am pretty sure that is not the right hitbox because it would not make any sense.

Are we on the same page here? I’m talking about the larger hitbox haha.

Oh, and happy birthday Monoreuk! :birthday:

Have a great thanksgiving! [1]


  1. Do you have thanksgiving in Ukraine? :sweat_smile: ↩︎

3 Likes

This is cool! Seems like you put a lot of effort into it! I thought about doing something like this, but the hitboxes for props, like how it seems like the sand pile prop’s hitbox is just a big rectangle in the center of it.

2 Likes

(post deleted by author)

2 Likes

I’m bad at this stuff, but why is that hitbox so SMALL?

1 Like

I heard some stuff about the Truck-A-Tron’s hitbox being bigger, this was apparently an accident

1 Like

What do you mean by “exact point of the hitbox” and “plus or minus hitboxes in High”?
An object’s hitbox in a well-organized game should never change if the object is not directly modified.

2 Likes

I will try

I think so, I’ll check

if you don’t believe me, recreate them yourself and try, I even showed another guide that explains and proves why the hitbox is like that.

thank you :>

thank you! and you asked if I celebrate Thanksgiving in Ukraine, the answer is no, because I am not in Ukraine, I said this but my profile confuses everyone ahaha, in the profile I mean that I was born in Ukraine and lived there all my life (about 10 years since I also traveled to different countries)
but in fact I live in America, for 2 years already, since there is a war in Ukraine, this is where I learn English!

I didn’t really want to make props since there are a lot of them, but I think I’ll just make a few props that are hard to understand hitboxes

I honestly don’t know, but think about it, the Gimkit developers wanted to make the zone so that it would be more realistic, probably, that is, so that the player would not just slightly touch but completely 1 naga would stand in the zone, with lasers it’s probably a different story, maybe they wanted the player’s Collision and the Collision of lasers to be a little bit more, as I said, I’ll admit a small mistake when I marked them with colors, I couldn’t do it perfectly but evenly, so you can remove that purple square a little bit in your head

interesting idea, I don’t have a seasonal ticket, I’ll find someone who has a seasonal ticket and try, very well noted!

ahh i don’t know, don’t forget that i use a translator (uhh i’m already tired of saying this, it’s so cringeworthy, but i can’t write without mistakes, at least someone might think that in 2 years in america i should have learned all of english, but that’s not true, i can speak but i write very badly and i can’t read)
i’ll fix this mistake, give me a minute

4 Likes

Oh, this is really interesting! I’ve been wondering for a while what the Hitbox size is, though I didn’t expect it would be that.

Great guide!! :+1:

In platformers, the hit box collision with props is like a skinny oval (from my experiments), which is why many fun quirks like ladder jumps exist.

1 Like

interesting, i think i’ll check their hitboxes too

1 Like

Of course, you could just look at the internals of gimkit’s code to find out…
I think it looks something like this, but the exact shape is probably different.
IMG_0368

3 Likes

what do you mean by this?

going inside the files and internal code of the game.

1 Like