jpMotion

jpMotion

Get device motion data
Version : 2.0
Price : $25
State : Outipadiphone

Downloads

Changelog

v2.0

  • Now compatible with ShiVa 2.0.
  • Compiled for Mac and Linux in addition to Windows, so you can now use it while working with ShiVa Editor for each of these operating systems.
  • Now uses a user token instead of an email to activate

API

--jpMotion API jpMotion.activate ( sUserToken, sActivationKey ) nYaw, nPitch, nRoll = jpMotion.getAttitude ( ) x, y, z = jpMotion.getGravity ( ) x, y, z = jpMotion.getMagneticField ( ) x, y, z = jpMotion.getRotationRate ( ) nUpdateInterval = jpMotion.getUpdateInterval ( ) x, y, z = jpMotion.getUserAcceleration ( ) bActive = jpMotion.isActive ( ) bAvailable = jpMotion.isAvailable ( ) jpMotion.setUpdateInterval ( nInterval ) jpMotion.startUpdates ( ) jpMotion.stopUpdates ( )

Description

This plugin provides everything you want to know about the device motion such as:

  • The device attitude (yaw/pitch/roll)
  • The rotation rate of the device
  • The acceleration of the device
  • The gravity direction and strength
  • The magnetic field.