My hitbox is made using region3s . I was visualizing my hitbox for a test but I realized that my region3 doesnt rotate with my player
as you can see when i punch strait it works , but when i punch at an angle the hitbox is still strait.
the region3 is created with
local V = Character.HumanoidRootPart.CFrame*CFrame.new(0,0,-2).p
Region = Region3.new(V-Vector3.new(3,3,3),V+Vector3.new(3,3,3))
wow13524
(wow13524)
December 10, 2020, 7:08am
#2
a Region3 intrinsically does not carry any rotation data, it represents a region starting at a position and ending at another, containing all possible positions within the box.
yep that’s the limitation of region3, you can use a different method like the rotated region3 module or :GetTouchingParts
Update: This module has served its purpose, but with the release of the new spatial query API this post is obsolete. It will be left untouched for learning purposes, but it’s strongly recommended to check out the built-in api solution instead.
Recently I took another crack at an old module I wrote some time back. The goal of this module is to provide users with a way to create Rotatable Region 3’s which is useful for too many reasons to list.
Even though this module (older versions) has been …