Turret not rotating in a 3D project

For anyone who like me decide to do this in 3D instead of 2D you may find the turret won’t turn.
To fix the problem replace line 15 with
“Vector3 aimScreenPos = new Vector3(inputReader.AimPosition.x, inputReader.AimPosition.y, -Camera.main.transform.position.z);”

1 Like

Privacy & Terms