How to make object rotate from the base in unity

60 views Asked by At

Im trying to make a flamethrower in unity and I intend for the hitbox to just be a rectangle being pointed towards the cursor. I got it to follow the cursor but it rotates from the center and not from the end like I wantenter image description here

What I am looking for is for the box to rotate from this base

enter image description here

I set the box as a parent of the gun the player holds to keep its position locked but that did not change the fact that it rotates from the center.

0

There are 0 answers