The gun is a separate object with the player as its parent. Since this is 2.5D, the gun has its own capsule positioned in 3D relative to the player's capsule. The gun sprite looks for the position and rotation of the gun capsule in 3D to figure out where to position itself and which sprite facing to draw.
How did you make that gun move around with main player and shoot 😮
The gun is a separate object with the player as its parent. Since this is 2.5D, the gun has its own capsule positioned in 3D relative to the player's capsule. The gun sprite looks for the position and rotation of the gun capsule in 3D to figure out where to position itself and which sprite facing to draw.