Motion and Position
Simulate your device in motion as it moves around the virtual world.
- Configure the accelerometer
- Configure the gyroscope
- Configure the magnetic sensor
- Configure the device orientation
Accelerometer
An accelerometer is a small hardware component built into Android devices that measures the device's acceleration. It's like a tiny sensor that can sense how fast and in what direction the device is moving.
On AVH, the accelerometer can be modified by providing x
, y
and z
values. The values are in m/s^2
and can be positive or negative.
Gyroscope
A gyroscope is another hardware component that helps measure and detect orientation and rotation. Think of it as a sensor that tells your device how it's tilted, twisted, or turned.
On AVH, the gyroscope can be modified by providing x
, y
and z
values. The values are in rad/s
and can be positive or negative.
Magnetic Sensor
The magnetic sensor is a hardware component that measures the magnetic field around the device. It is used to detect the direction of the magnetic north pole and to measure the strength of the magnetic field.
On AVH, the magnetic sensor can be modified by providing x
, y
and z
values. The values are in uT
and can be positive or negative.
Orientation
The orientation sensor is a hardware component that measures the orientation of the device. It is used to detect the orientation of the device in relation to the Earth's magnetic field.
On AVH, the orientation sensor can be modified by providing x
, y
and z
values. The values are in degrees
and can be positive or negative.
Proximity
The proximity sensor is a hardware component that measures the distance between the device and an object. It is used to detect when the device is close to an object.
On AVH, the proximity sensor can be modified by providing a distance
value. The value is in cm
and can be positive or negative.