C# 클래스 Ball_MotionSync, goalBall

Synchronizes the position/rotating of the ball over the network
상속: NetworkBehaviour
파일 보기 프로젝트 열기: DrexelGoalBall/goalBall

공개 프로퍼티들

프로퍼티 타입 설명
lerpRate float
posThreshold float
velThreshold float

공개 메소드들

메소드 설명
Reset ( ) : void

Moves the ball to its intital position/rotation

비공개 메소드들

메소드 설명
LerpMotion ( ) : void

On clients, lerps position/rotation of ball based on transformations provided by server

Start ( ) : void

Sets up the initial values

TransmitMotion ( ) : void

If this is the server and the ball has moved/rotated significantly, update its position/rotation

Update ( ) : void

Every frame, send or lerp position of ball depending on server or client

메소드 상세

Reset() 공개 메소드

Moves the ball to its intital position/rotation
public Reset ( ) : void
리턴 void

프로퍼티 상세

lerpRate 공개적으로 프로퍼티

public float lerpRate
리턴 float

posThreshold 공개적으로 프로퍼티

public float posThreshold
리턴 float

velThreshold 공개적으로 프로퍼티

public float velThreshold
리턴 float