I’m very new to unity and having difficulty figuring out a rotation issue. I have a cylinder (which is a tank turret) but I can’t figure out how to make it rotate at the base. I’ve set it up to rotate when I press the left or right keys but it rotates around the center of the cylinder rather than the bottom. I set the axis to -1 and that still doesn’t work. Any help would be appreciated but talk to me like a child because I’m so new, thanks.
Hi , can you post you code to check what you made it so far.
ktorti: Hi there, where is the pivot of your turret located? Check that it’s in the base of turret. Select the object in viewport and check that pivot mode is showing Pivot + Local.
Anyway, I’m bit perplexed how heading of turret can go wrong if pivot is aligned to center of cylinder. No matter what height the pivot is at - result should be the same if rotating along local Y-axis. But if the pivot is not at center of your turret, create empty gameobject, parent turret to it, align it properly and then rotate the empty gameobject instead of cylinder.