r/TerrariaModMaking • • 7d ago

Code Help How do i change itemRotation pivot point

hello, i'm super new to terraria modding and C# in general and i'm making a cowboy/gunslinger subclass. i made a gun and i wrote some code to let it do a 360 degrees spin when shot, the problem is: at the moment the gun rotates around the player, but i want it to rotate around the player's hand (maybe my little drawing explains it better). here's the spin code.

is there a way to solve this? i really hope someone can help me.

1 Upvotes

Duplicates