MotionSensor node


Gives access to accelerometer data if available. If you want to provide a landscape mode in your application, prefer the use of SizeNotifier prototype from the SDK.


SFBool enabled TRUE :
The MotionSensor node will only output data if enabled is set to TRUE.

SFVec3f acceleration 0 0 0 :
Output the accelerometers values (from -1 to 1 in each direction), if data is available and enabled field is set to TRUE.

SFInt32 rotation 0 :
Output rotation (range from 0 to 360).

SFBool isAvailable false :
Defines if API sensor is set in compilation option. (#ifdef api.sensor).