Skip to main content

Motion and Position

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 in iOS is a small hardware component built into iPhones and other Apple 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 Corellium, 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

In iOS devices, 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 Corellium, 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 Corellium, 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 Android Only

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 Corellium, 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 Android Only

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 Corellium, the proximity sensor can be modified by providing a distance value. The value is in cm and can be positive or negative.