I’m having a problem getting Unity to display a change in acceleration events using the Unity Remote app. Is this correct or is it possible that the resulting numbers are so small they’re not registering? Here’s the code… quoted from the Unity Script Reference:
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Update() {
Vector3 acceleration = Vector3.zero;
foreach (AccelerationEvent accEvent in Input.accelerationEvents) {
acceleration += accEvent.acceleration * accEvent.deltaTime;
}
print(acceleration);
}
}