EdgeMultiplay.Observable.Observable | ( | Transform | targetTransform, |
SyncOptions | syncOption, | ||
bool | interpolatePosition, | ||
bool | interpolateRotation, | ||
float | interpolationFactor, | ||
int | observableIndex = 0 |
||
) |
Observable Constructor
targetTransform | The Transform you want to Sync its position and/or rotation |
syncOption | Synchronization Option |
interpolatePosition | Set to true if you want to smoothen the tracked position if there is network lag |
interpolateRotation | Set to true if you want to smoothen the tracked rotation if there is network lag |
interpolationFactor | Set Interpolation factor value between 0.1 and 1 |
observerIndex | Observable index in observer.observables list |