About Store Forum Documentation Contact
Donations:
345$/mo



Post Reply 
gyrosensor
Author Message
xzessmedia Offline
Member

Post: #1
gyrosensor
can anybody tell me if gyrosensor is supported and how to read its values?

Royality Free Game Ressources
www.xzessmedia.de
03-22-2013 12:52 AM
Find all posts by this user Quote this message in a reply
Ozmodian Offline
Member

Post: #2
RE: gyrosensor
Hi Xzessmedia,

Yes the gyro is fully supported (for android i know for sure, not 100% sure on apple but i think it is). There is a basic tutorial that renders just a ball that you can move with the gyro. I don't have the name in front of me but it is there. If you still cant find it, i will give you the exact name when i get home.

**********
In case you didn't find it, it is in the 1.0 Android version. The following function return a vector for the movement.

Accelerometer()
Gyroscope ()
(This post was last modified: 03-22-2013 07:52 AM by Ozmodian.)
03-22-2013 02:35 AM
Find all posts by this user Quote this message in a reply
xzessmedia Offline
Member

Post: #3
RE: gyrosensor
thank you very much!

Royality Free Game Ressources
www.xzessmedia.de
03-22-2013 02:22 PM
Find all posts by this user Quote this message in a reply
xzessmedia Offline
Member

Post: #4
RE: gyrosensor
i wrote a test app on iOS and i got some weird results,
Gyrosensor gives me some values which seem to be Accelerator values,
and if i use Accelerator() the app crashes, just uncomment those marked lines

a friend of me could reproduce it with his android..

can anybody tell me whats going on?

The 2.0 GyroTest Project is attached


Attached File(s)
.zip  GyroTest.zip (Size: 65.59 KB / Downloads: 3)

Royality Free Game Ressources
www.xzessmedia.de
(This post was last modified: 03-22-2013 08:40 PM by xzessmedia.)
03-22-2013 08:37 PM
Find all posts by this user Quote this message in a reply
Ozmodian Offline
Member

Post: #5
RE: gyrosensor
Hi xzessmedia,

Your going to laugh at yourself i am afraid....

in your init function, you are missing:

Code:
ax = &Hauptfenster.getText("ax");
   ay = &Hauptfenster.getText("ay");
   az = &Hauptfenster.getText("az");

That's it. Enjoy smile
03-23-2013 03:39 AM
Find all posts by this user Quote this message in a reply
xzessmedia Offline
Member

Post: #6
RE: gyrosensor
omg.. THX smile

Royality Free Game Ressources
www.xzessmedia.de
03-23-2013 01:34 PM
Find all posts by this user Quote this message in a reply
Post Reply