C# Класс Ball_MotionSync, goalBall

Synchronizes the position/rotating of the ball over the network
Наследование: NetworkBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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