|
Post by ahmarkhalid on Oct 10, 2017 13:11:33 GMT
I am facing camera issue at (Mobile)when i first click at screen in my Game Play Scene camera moves randomly also when i clicked first time in any button after that camera works properly, Please help me..
|
|
|
Post by ahmarkhalid on Oct 11, 2017 7:58:13 GMT
Please help me
|
|
|
Post by Invector on Oct 11, 2017 13:40:31 GMT
Try check "Start Using Target Rotation" and uncheck "Start Smooth" in the camera options
|
|
|
Post by ahmarkhalid on Oct 11, 2017 14:28:58 GMT
I did that things but my issue still not solved, Please help me
|
|
|
Post by Invector on Oct 11, 2017 14:33:38 GMT
I did that things but my issue still not solved, Please help me Can you record a video showing the issue?
|
|
|
Post by ahmarkhalid on Oct 12, 2017 7:55:53 GMT
Look at the camera in the given video i just clicked at button but camera moves upward same issue when i clicked at anywhere in the screen camera moves upward only first time after that it works perfectly.
|
|
|
Post by ahmarkhalid on Oct 17, 2017 14:08:36 GMT
please help me
|
|
|
Post by Invector on Oct 17, 2017 18:45:43 GMT
Hmm that's very strange, try checking the UI that handles the camera movement... you could also replace to a joystick or something
|
|
|
Post by Invector on Oct 17, 2017 23:19:06 GMT
Try adding this into the Camera Init method:
if (startUsingTargetRotation) { mouseY = currentTarget.root.eulerAngles.NormalizeAngle().x; mouseX = currentTarget.root.eulerAngles.NormalizeAngle().y; } else { mouseY = transform.root.eulerAngles.x; mouseX = transform.root.eulerAngles.y; distance = Vector3.Distance(transform.position, target.position); }
|
|