Best way to achieve a custom player hitbox?

Hey, I’m making a collision system for my game and I want to add a for example: 3x5x3 hitbox for the player and not use the normal Roblox character collision system.

I have a custom movement system that uses linear velocity, I want it to be like Quake 1’s hitbox that doesn’t rotate so it prevents me walking into anything in that hitbox and flattening my body mover’s vector against the wall.

I have tried to make this before but I failed.

Anyways if you could give me any code snippets, algorithms, video’s on how to make this or an explanation I would be very grateful.

For anyone wondering, this is what I want to achieve.

1 Like

The most primitive way you can go about this is welding a part with the size you want to the players character, setting it’s mass to 0 and setting up a collision group for it should accomplish what you need.

3 Likes

I want to make it actually feel good by making it with a script. And I don’t think a part welded to a character will decrease my linear velocity on collision.

You can certainly make it do so, I’m just giving you the principles of making a primitive hitbox.
For example, if you decided to utilize the Touched event to slow the player down, you can by subtracting the direction between the hitbox and the hitpart with a certain coefficient from the velocity of the player.

1 Like

I saw like 12 videos on this on YouTube. Not sure if they are what you’re looking for but it’s a start.
I really don’t see why you would want to use anything other than Roblox’s. Really didn’t see what you were getting to in that video …

1 Like

It was supposed to show a 2x2 hitbox with flattening the velocity vector against an object. Sorry if I caused confusion.