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

Offset at which an object is being grabbed. Meaning: grab-position in local coordiantes relative to the grabbed object. For instance: If we grab a Pan by its handle, this value will correspond to the pans handle in local coordiantes. If no object is grabbed, returns Vector3.zero.

Definition at line 70 of file AVR_BasicGrabProvider.cs.

70  {
71  return grabbedObject ? grabLocation.localLocation : Vector3.zero;
72  }
AVR_Grabbable grabbedObject
Object that is currently being grabbed. Null if no object is being grabbed