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

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

Reimplemented in AVR.Phys.AVR_AdvancedOffsetGrabProvider, and AVR.Phys.AVR_OffsetGrabProvider.

Definition at line 138 of file AVR_BasicGrabProvider.cs.

138  {
139  if(grabbedObject !=null) {
140  OnRelease.Invoke();
141  grabbedObject.Release(this);
142  grabLocation = null;
143  }
144  }
AVR_Grabbable grabbedObject
Object that is currently being grabbed. Null if no object is being grabbed