- Added the touch_event into the last days' work
###About the
GUILayout
informations - rotationRate is currently in radians/seconds, return float is in high enough resolution but didn't print out
- currentRotation refers to the calculation results, can be a reference,
quaterion
is easy to get inside the Unity, but didn't print out here - touch events includes
- Multitouch support, the index refers to
touch[n]
in unity - Positon refers to the (x,y) in screen space, left-down corner = (0,0), absolutely based on screen pixel
- The printed states are the enums of
touchPhase
provided by Unity, with five states as:Began
,Moved
,Stationary
,Ended
,Canceled
, details can be found in the link here
- Multitouch support, the index refers to
- Build Scene/GyroScope_Rotation.unity into any Targeted Android phones
- High FPS performance
- the toggle in the left down corner is for open/close gyro, and the button in the right down corner is for recenter the targeted object
- Calling
Input.gyro.rotationRate
instead ofInput.gyro.attitude
, in which will boost the application because of some idoit issues from Unity to Android
- For Zhenyi if next steps is needed
- Recommanded to broadcast the
Vector3 rotationRate
, and calculate theRotation
inside the client server, by usingTransform.rotate()
methods - Recenter will be easy to do, by directly recenter the target object, instead of operate some Quaternion, which will always have some issue in the math side
- Recommanded to broadcast the
- 2D drawing traces array, rendering in screen first