playMaker

Author Topic: Accelerometer "Zero Out"  (Read 2551 times)

jerware

  • Playmaker Newbie
  • *
  • Posts: 23
    • View Profile
Accelerometer "Zero Out"
« on: March 16, 2013, 01:36:04 PM »
I'm experimenting with controls similar to the game Tilt to Live, where the player tilts the device to move objects on screen. I have it working, but the device needs to be parallel to the earth. I'd like to let the user hit a "calibrate" button that resets the neutral tilt of the device.

Would it be possible to write an action that does this? I can't quite figure out the math to do it myself yet, but I did find this good article about the subject.

http://www.paradeofrain.com/2010/07/lessons-learned-in-tilt-controls/

Thanks!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14957
  • Official Playmaker Support
    • View Profile
Re: Accelerometer "Zero Out"
« Reply #1 on: May 14, 2013, 10:10:21 AM »
Hi,

 I am currently fighting with this too. Unity 4 has apparently a new function to do that automatically, but I haven't had a chance to get there on that project just yet. More on this soon.

Bye,

 Jean

aLDime

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
    • http://aldimegame.com/
Re: Accelerometer "Zero Out"
« Reply #2 on: August 30, 2013, 12:45:12 AM »
Unity 4 has apparently a new function to do that automatically, ... More on this soon.


Hi, any news on this?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14957
  • Official Playmaker Support
    • View Profile
Re: Accelerometer "Zero Out"
« Reply #3 on: September 09, 2013, 10:55:31 PM »
Hi,

 No yet... Simply can't fight my way into this, I have to catch up with pending threads at the moment :)

bye,

 Jean