- Home /
Working FPS Control on iPad?
Hello everyone!
i'm developing a showroom which is close to finish, BUT i have a certain problem.
My showroom got :
a FPS Controller
a script for toggling an objects rotation on/off
a script to toggle the spotlights on/off
Long story short : i need help on how i get the user to be able to control those things on an iPad/iPhone.
Every help (except for just redirecting me to references which do not help anyway) is highly appreciated.
Thanks in advance! :)
h4wkeye
Answer by Justin Warner · Mar 31, 2011 at 12:23 PM
Alright... So, I was actually going to make a whole website in Unity... and I though of how to goto different pages...
So, I'd do some GUI work, and make it when you push the buttons to go to a certain object, it moves the camera for you to a certain spot...
To do this, I'd use:
http://www.unifycommunity.com/wiki/index.php?title=Spline_Controller
It's easy to set up, make the camera the object that moves, and have certain "nodes" enable for whatever item you'd want....
Other than this.. You can use the build-in accelometer...
Might be harder, but could work...
Another idea would be to have like, and "On-screen keyboard" so you can move by pushing the buttons, which would be like...
if input is w -> make player go foward
if input is a -> make player rotate left
if input is s -> make player go backward
if input is d -> make player rotate right...
This can work pretty well, just mix the GUI with some transform/translate, and you can get that...
But any of these could work... Depends on how much work you're willing to do =). And sorry about the 2 links, it's how I answer questions... Not a fan of giving people code as I don't like to write code for people.... I find that it's like giving a man a fish.... They should be able to fish so then they can help others... You know?
Your answer
Follow this Question
Related Questions
I want to have FPS iOS tutorials. 0 Answers
collider doesnt react to script 0 Answers
Unity iPhone: AddForce to Object after Touch 0 Answers
Disabling a GameObject via keyboard 2 Answers