Rotate gravity
alexander144
Member Posts: 93
Basically what the title says. What I want to do exactly is when the player tilts there iphone the gravity will tilt. Thanks.
Comments
That way you can control direction and do some rules that work out the amount of acceleration depending on the increase or decrease in the device accelerometers X and Y..
I imagine there is a Labyrinth type template/demo/tutorial somewhere. Where as you tilt the device the ball would roll in that direction...
Currently I am using the device orientation to flip the actor animation even though the scene is fixed but this has a delay and I am working on using a faster method. Suggestions? I know that I could create rules for my own rotation feedback but I am sure that IOS has switching in it at a level I can't get at earlier, but we shall see. I am a newbie (about a week) to this and not familiar with how others are doing it.
There is also the matter of the Apple requirement of the app being able to orientate in at least 2 orientations and I am not sure if if this approach actually qualifies even though it is an 'all direction' interface. If someone could tell me if it is then please let me know. I presume that it is otherwise Labyrinth type games would not be saleable.
Cheers and thanks to everyone here for the giving out.