C# 클래스 NaviDevice, Navi

This class is responsible for taking the unreliable network pose data and interpolating. The interpolated data can be accessed via the DeviceLocation static variable, which is the transform of the game object this script is attached to. Supports only one device.
상속: MonoBehaviour
파일 보기 프로젝트 열기: vmohan7/Navi 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

OnDestroy() 공개 메소드

Called when object is destroyed i.e. when game ends
public OnDestroy ( ) : void
리턴 void

SetServerScreenSize() 공개 메소드

Stores the smart device's width and height to be accessed by the game
public SetServerScreenSize ( int width, int height ) : void
width int The width of the smart device
height int The height of the smart device
리턴 void

Start() 공개 메소드

Called after Gameobject is initalized. We start listening for pose data
public Start ( ) : void
리턴 void

Update() 공개 메소드

Called every frame and interpolates the current pose to the synchronized pose based on time.
public Update ( ) : void
리턴 void