playMaker

Author Topic: Device Tilting Help  (Read 1899 times)

derkoi

  • Full Member
  • ***
  • Posts: 187
Device Tilting Help
« on: October 23, 2012, 09:30:24 AM »
I can't figure out how to do this, but I'm sure it's simple enough. Hopefully someone can help.

I'd like to tilt the device on it's Z axis (device roll action) and a ball which uses physics rolls in the direction of the tilt. I added forces to the ball but it's not realistic.

I'm trying to get it like tilting the device tilts the world around the ball, so the ground on the screen is at the angle the device is and effects the ball accordingly.

Not sure if i should be using set gravity or if there's some other way?  ???

Horror

  • Junior Playmaker
  • **
  • Posts: 79
Re: Device Tilting Help
« Reply #1 on: October 23, 2012, 09:49:50 AM »
There's a bunch of great tutorials available. Have you watched the device acceleration video yet? (Number 5)

http://www.hutonggames.com/tutorials_ios_fundamentals.php
« Last Edit: October 23, 2012, 09:53:48 AM by Horror »