VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void AVR.Phys.AVR_AdvancedOffsetGrabProvider.Update ( )
inlineprotectedvirtual

Reimplemented from AVR.Phys.AVR_BasicGrabProvider.

Definition at line 72 of file AVR_AdvancedOffsetGrabProvider.cs.

72  {
73 #if AVR_NET
74  if (IsOnline && !IsOwner) return;
75 #endif
76  base.Update();
77 
78  if(grabbedObject!=null) {
80 
81  virtualGrabPoint.localPosition = Vector3.Lerp(pos_offset, Vector3.zero, factor);
82  virtualGrabPoint.localRotation = Quaternion.Lerp(rot_offset, Quaternion.identity, factor);
83 
85  Vector3.Distance(lastPos, virtualGrabPoint.position) +
86  0f
87  ;
88  }
89  else {
91  }
92  lastPos = virtualGrabPoint.position;
93  }
AVR_Grabbable grabbedObject
Object that is currently being grabbed. Null if no object is being grabbed