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

Ends a grab. Is called when the respective "releaseEvent" is true.

Reimplemented from AVR.Phys.AVR_BasicGrabProvider.

Definition at line 62 of file AVR_AdvancedOffsetGrabProvider.cs.

63  {
64  base.makeRelease();
65  if(handVisual) handVisual.glove_transform.localPosition = Vector3.zero; //cheaty
66  virtualGrabPoint.localPosition = Vector3.zero; //virtualgrabPoint is a child of base.getTargetTransform() so this is fine
67  virtualGrabPoint.localRotation = Quaternion.identity;
68  pos_offset = Vector3.zero;
69  rot_offset = Quaternion.identity;
70  }