Rotating model cone-shaped hitbox using wedgeparts

Objective: Drawing Rotated Region3’s from wedgeparts positioned in front of the model that is placed.

Problem: Can’t seem to find the proper relationship between the model’s rotation and the rotation of the two wedges

What it should look like:

What it ends up looking like at any other rotation than 0 degrees (starting rotation):

I’ve removed all of them now, but I’ve tried a number of solutions often times with only partial success (works on some rotations) or no success

  • Negative model Y rotation
  • Positive model Y rotation
  • Subtracting model Y rotation from 180 degrees (math.pi radians)
  • Adding model Y rotation to 180 degrees (math.pi radians)
1 Like

Solved. There was an increasing discrepancy in the rotation when reading a model’s rotation from ToEulerAnglesXYZ(). The solution to this was firing to the server using the placement system’s variable for rotation on placement.

1 Like