Matt McCarthy edited Our Prototype1.tex  about 10 years ago

Commit id: ce20295396c1e8f87342b392b0188736c45df615

deletions | additions      

       

\subsection{Our Prototype}  write here matt \subsection{Sensors}  The sensors are retrieved from the system sensor manager service, as the default accelerometer and rotation vector sensors for the device. Listeners are then registered to the sensors through the sensor manager.  Changes in the registered sensors' values trigger the onSensorChanged method. If the event sensor is of type accelerometer, the variable for player speed is set relative to the value of the accelerometer z axis. If the event sensor type is rotation vector, the values are stored in the variable 'rotationValues'.