Hi,
I am new to Unity and making my first FPS.
I am trying to attach my weapon to the camera so it moves around with me.
I have attached the weapon to the FirstPersonController Main Camera and positioned it so it appears on screen correctly.
The weapon follows me around the map fine and goes wherever I do, all is fine until I move the camera up or down, the gun ends up moving away from the camera the higher/lower I aim.
Looking at it in the scene view, the gun moves above the position of the camera when looking up and below it when looking down (when camera is in default position and looking left and right it is fine).
I did the exact same procedure in v2.6 and it worked absolutely fine, but doing it in 3.3 (that I have just started using) I am having this problem.
It does not appear to be a problem with the weapon itself as I tried using a GameObject>Cube as a test gun and the exact same thing happened with that.
I have tried attaching the gun directly to the camera and also attaching it to an emptyGameObject and attaching that directly to the camera instead, but the same thing happens either way.
I have attached 2 screenshots, the first showing the gun appearing correctly in its default position and the second showing the gun going above the camera when looking upwards.
Any help would be greatly appreciated and I thank you in advance.
James


I think maybe the textrue format set is wrong ? someone set the textrue RGBA32 to Android platform
– guadou