So I'm in trouble. For my class, I've been given the assignment of creating a 3d game in which tilting the ios device left, right, forward, or backwards causes the terrain to turn in that direction. The problem is I've never worked in a 3d environment with IOS, and don't even know if it's possible using Xcode. So.....Is it?
Yes it is indeed possible to do 3D Environments with iOS via xcode. How are you currently doing your 2D projects? I am guessing you use an engine which could be problematic for you depending on what engine you are using and whether that engine supports 3D. But yeah, simple answer is: Yes, all you need is xcode and you can use openGL to easily use 3D on iOS.
Oh no guy, start learning openGL and then build up a playable demo will cost you at least three months. I suggest you employ 3D engines like Unity3d or Unreal Engine.
this is a super easy and quick job in unity as you can do it all out of box and then compile as the xcode project
+1 for scenekit If you are familiar with spritekit it is probably worthwhile shifting to scenekit. I personally know nothing about either but I think moving to openGL might be too much of a leap for you right now and apple has probably made both systems friendly for beginners. Ray Wenderlich's Website has a decent looking scene kit tutorial that is hopefully still relevent. His website has lots of nice tutorials and find myself there from time to time.
pretty dam easy to do in unity... just create a square plane and write a script relating its rotation values to the gyro values which are constantly being updated. probably normalizing it would give it a nice smooth motion....
and if u wanna go one step further check out the PlayMaker asset store plugin, its on sale for 45 bucks right now. I never used it(but may consider it in the future), but it basically lets u use final state machines to create ur game within unity without having to write ANY code(unless u want to add something thats missing) im 99.99% sure it would be pretty simple to use a FSM to tie your phone tilting to the rotation of an object in the game, in fact im 100% sure.