Property | Type | Description | |
---|---|---|---|
lerpRate | float | ||
posThreshold | float | ||
velThreshold | float |
Method | Description | |
---|---|---|
Reset ( ) : void |
Moves the ball to its intital position/rotation
|
Method | Description | |
---|---|---|
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
|