|
Hi I'm doing an airplane game and I want to be able to look to the sides of the cockpit. I want then that the user can press the center of the screen and slide the finger from left to right or viceversa and the camera will look into that direction. How can I do this? I was thinking maybe using a sphere collider and detecting a raycast but since i only want to use horizontal movement i don't know if that's the best way to achieve it. Any ideas? Any easy script?
(comments are locked)
|
|
Hey Guys have you found any think about this??? :(
(comments are locked)
|
|
Were you able to figure this out? I'm banging my head right now trying to get it working. Thanks. no luck. I tried every possible combination without success. If you manage to figure it out please let me know because it's very important for my game :/
Dec 19 '10 at 10:43 AM
creat327
(comments are locked)
|
|
Hmm, the first thing I would try is to use touch deltaPosition to modify the camera's localEulerAngles.z property. nope, that doesn't do it. I found the Orbit script on the wiki and standard assets but it has a bug: too understand what i mean, get your target and turn it around to the left 140 degrees for instance. Now just 'click' the mouse but don't move it. If everything is correct, no camera orbit should happen since you are not moving the mouse. You will see this is not the case, the camera will rotate to some other default position.
Sep 26 '10 at 03:05 PM
creat327
(comments are locked)
|

I found the MouseOrbit script on the standard asseets and the wiki but it has a bug. too understand what i mean, get your target and turn it around to the left 140 degrees for instance. Now just 'click' the mouse but don't move it. If everything is correct, no camera orbit should happen since you are not moving the mouse. You will see this is not the case, the camera will rotate to some other default position.