Rotate Attribute
The_Gamesalad_Guru
Member Posts: 9,922
Okay fellow game salad minds, I have a question challenge. I can't seem to get anything out of the Device level attribute (Device Rotation) it's under Devices/Screens. It's an angle attribute. Any thoughts????
Comments
Buler, buler anyone...lol
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I always thought the device rotation was actually 4 states ie, state 1 2 3 4 that corresponds to horizontal or vertical and flipped up or down. if that makes sense, and the device rotation would actually be stored with in the accelerometer output.
Actually it's a separate attribute but in my tests give no changes to state when rotated. It would actually be linked to the gyroscope as the accelerometer is a function of the velocity of the rotation happening not actual rotation state but direction of velocity, hence it's called the accelerometer.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@BlackCloakGS
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Pretty sure Device Rotation just indicates current state of display rotation so is OS based and used to work before gyros appeared on devices being a product of the last accelerometer input.
With a simple viewer test perhaps no longer working as Guru already stated although it does reset to zero on rotation if the game.Screen.Device Rotation has been modified.
edit: scratch most of that ... interface/device Orientation gives feedback of states.. I'll go back to sleep
This is found in the game.Screen.Device Orientation and game.Screen.Interface Orientation attributes, not the game.Screen.Device Rotation attribute.
Device Orientation and Interface Orientation both reflect the orientation of the screen, but there must be a difference between them. No idea what, though.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
The device rotation is expressed through an angle attribute so can't be a state or it would be an integer so must be expressed in increments. How to achieve an output is what I'm after. This could be handy for all types of stuff. My several attempts have not produced any results. Have been using adhoc builds as viewer doesn't respect rotation.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
The two attributes I linked give a rotation as a value of 1-4. I have never got anything more precise unfortunately.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
The viewer returns device and interface orientation ok as Armelline says with values of 0-3
Well spotted. My memory failed me there
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support