How to use accelerometer in jmonkey.
Plzz help
From what I know jme doesn’t really have accelerometer. It’s in the android system. So just do as you would do in a normal application.
But remember to make all values that changes “syncronized” to avoid a crash of your game.
In the latest versions of jME its wrapped as a joystick input, each joystick axis represents an accelerometer axis.
@Addez said:
From what I know jme doesn't really have accelerometer. It's in the android system. So just do as you would do in a normal application.
But remember to make all values that changes "syncronized" to avoid a crash of your game.
NO NO NO NO NO.
Do not use synchronized. Use enqueue as described in the threading tutorial.
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:multithreading
Oh Mama Mia, Mama Mia!
1 Like
http://hub.jmonkeyengine.org/groups/android/forum/topic/creating-engine-support-for-android-sensor-input/?topic_page=3&num=15#post-192638
http://code.google.com/p/jmonkeyengine/source/browse/trunk/engine/src/android/com/jme3/input/android/AndroidSensorJoyInput.java
many of connection links are dead, your post probably: