I want to check if something is currently on the top face of a part, what should I check for this?
(I want to check if a player has hit something with the top of their hitbox)
I want to check if something is currently on the top face of a part, what should I check for this?
(I want to check if a player has hit something with the top of their hitbox)
raycast/spherecast from the player’s hitbox upwards.
the origin would be hitbox.Position
, and the direction vector would be Vector3.yAxis * (hitbox.Size.Y/2 + 0.5)
.
0.5 is the max offset, you may want to adjust that.
you can also use a spatial query.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.