public override void UpdateController() { if (enabled) { if (handAnimator != null) { handAnimator.UpdateController(); #if INSTANTVR_ADVANCED if (handMovements != null && selected) { handMovements.thumbCurl = 0; handMovements.indexCurl = 0; handMovements.middleCurl = 0; handMovements.ringCurl = 0; handMovements.littleCurl = 0; } #endif position = handAnimator.position; rotation = handAnimator.rotation; if (selected) { transform.position = position; transform.rotation = rotation; } } } }
public override void UpdateController() { if (enabled) { if (handAnimator != null) { handAnimator.UpdateController(); position = handAnimator.position; rotation = handAnimator.rotation; if (selected) { transform.position = position; transform.rotation = rotation; } } } }