Can you use accelerometer to determine orientation?

IntelligentDesignerIntelligentDesigner Member Posts: 517
edited November -1 in Working with GS (Mac)
Like have a rule that checks if the device is in Portrait or Landscape position?

How would you set a rule for one or the other?

Thanks for any help! I appreciate it!!

Comments

  • KamazarKamazar Member Posts: 287
    Ah, well, doesn't really work that way. There's no behavior to change the orientation from portrait to landscape. If you want it to work both ways, you'll have to create a rule for each individual actor. Rotation, switching positive and negative variables, and activating certain behaviors for single dimension attributes like gravity. It's tedious, to say the least.
  • IntelligentDesignerIntelligentDesigner Member Posts: 517
    Not really wanting to change the orientation, but more like wanting to know which way it is turned... There must be a way of interrogating the accelerometer, no? Some value returned when it is upright and another value when sideways?
Sign In or Register to comment.