How do I make a second hitbox for player

so im making a platform shooter game and i need to add a headshot mechanic but how do i make a second hitbox


sneak peak

1 Like

Multiple ways.

Create a 2nd smaller object, stick the object to the character or position it manually.

Or when the bullet collides, you could check the distance of the projectile to a point on the character.

Bullet in collision with character
If distance between the bullet and a point on the character is less than a certain number then headshot.

1 Like