Good day everyone! I was hoping someone could assist me with a swipe to look mechanism. I am working on a children’s learning game. I have a stationary camera that I would ideally like to add a swipe to look around control to it.
The environments are 3d and I want the child to enjoy the 3d world by being able to ‘look’ around. No motion to the camera just the looking around capability.
I was wondering if there was also a way to have a double tap to reset the camera to its initial position?
I really enjoyed the feel of the camera look in the Epic Citadel demo. Thank you so much in advance for any help.
Sincerely,
Gary
the camera there is pretty easy.
touch movement on x → affects object eulerAngles y
and the doubletab is as complex as checking the tapCount for all touches
though it does not make sense for horizontal orientation, only if you add vertical look through touch as well (in which case touch movement on y → affects object eulerAngles x)
Dreamora thanks for your response. I will try to figure all this out. Thanks for letting me know it can be done. I Just need to wrap my feeble artist mind around making it all work now. Thanks again.
Sincerely,
Gary
In the “Standard Assets (mobile)” folder located in your unity application folder, there are a few control setup prefabs. You can start with one of those and tweak it. It may be a good starting point.
Absolutely! Thanks I will start there.
Sincerely,
Gary
Another suggestion along these lines…look for the samples SmoothFollow and SmoothLookAt – if you apply the interpolation techniques in there to dampen your camera movement (even slightly) it’ll give you a more “relaxed” feel to your application which you can scale from or as close to a 1-to-1 response to user inputs as you like. IMO that may be a more desirable effect for a child-oriented game where you may not want the jerkiness / snappy response of not using Lerp/Slerp functions.
Just a thought – good luck with the project!
Thank you very much! Yes having a more smooth/relaxed motion is more like it. I will definitely look into both of those.
Sincerely,
Gary