Method | Description | |
---|---|---|
OnDestroy ( ) : void |
Called when object is destroyed i.e. when game ends
|
|
SetServerScreenSize ( int width, int height ) : void |
Stores the smart device's width and height to be accessed by the game
|
|
Start ( ) : void |
Called after Gameobject is initalized. We start listening for pose data
|
|
Update ( ) : void |
Called every frame and interpolates the current pose to the synchronized pose based on time.
|
Method | Description | |
---|---|---|
OnAccelerationData ( int connectionID, Vector3 syncAccelData ) : void |
Calculates the difference in time between sycnhronizations based on acceleration data sent from the network
|
|
OnPoseData ( int connectionID, Vector3 syncPosition, Quaternion syncRotation ) : void |
Calculates the difference in time between sycnhronizations based on pose data sent from the network
|
public SetServerScreenSize ( int width, int height ) : void | ||
width | int | The width of the smart device |
height | int | The height of the smart device |
return | void |