This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

Unity 1.36 Reference Guide

OVRGrabber Class Reference

Allows grabbing and throwing of objects with the OVRGrabbable component on them.
MonoBehaviour inherited by OVRGrabber.

Data Fields

float
float
grabEnd ( )

Object Data

bool
Transform
Collider []
OVRInput.Controller
Transform
bool
Vector3
Quaternion
Quaternion
Vector3
float
OVRGrabbable
Vector3
Quaternion
Dictionary< OVRGrabbable, int >
bool

Properties

OVRGrabbable
grabbedObject ( ) [Get]
The currently grabbed object.

Public Member Functions

void
ForceRelease ( OVRGrabbable grabbable )

Object Data

void
Awake ( )
void
Start ( )
void
CheckForGrabOrRelease ( float prevFlex )
void
void
MoveGrabbedObject ( Vector3 pos, Quaternion rot, bool forceTeleport )
void
GrabEnd ( )
void
GrabbableRelease ( Vector3 linearVelocity, Vector3 angularVelocity )
void
GrabVolumeEnable ( bool enabled )
void

Private Member Functions

void
void
void
void
OnTriggerEnter ( Collider otherCollider )
void
OnTriggerExit ( Collider otherCollider )

Field Documentation

float OVRGrabber.grabBegin ( )
float OVRGrabber.grabEnd ( )

Object Data Documentation

bool OVRGrabber.m_parentHeldObject ( )
Transform OVRGrabber.m_gripTransform ( )
Collider [] OVRGrabber.m_grabVolumes ( )
OVRInput.Controller OVRGrabber.m_controller ( )
Transform OVRGrabber.m_parentTransform ( )
bool OVRGrabber.m_grabVolumeEnabled ( )
Vector3 OVRGrabber.m_lastPos ( )
Quaternion OVRGrabber.m_lastRot ( )
Quaternion OVRGrabber.m_anchorOffsetRotation ( )
Vector3 OVRGrabber.m_anchorOffsetPosition ( )
float OVRGrabber.m_prevFlex ( )
OVRGrabbable OVRGrabber.m_grabbedObj ( )
Vector3 OVRGrabber.m_grabbedObjectPosOff ( )
Quaternion OVRGrabber.m_grabbedObjectRotOff ( )
Dictionary<OVRGrabbable, int> OVRGrabber.m_grabCandidates ( )
bool OVRGrabber.operatingWithoutOVRCameraRig ( )

Property Documentation

OVRGrabbable OVRGrabber.grabbedObject ( )
The currently grabbed object.

Member Function Documentation

void OVRGrabber.ForceRelease ( OVRGrabbable grabbable )

Object Data Documentation

virtual void OVRGrabber.Awake ( )
virtual void OVRGrabber.Start ( )
void OVRGrabber.CheckForGrabOrRelease ( float prevFlex )
virtual void OVRGrabber.GrabBegin ( )
virtual void OVRGrabber.MoveGrabbedObject ( Vector3 pos, Quaternion rot, bool forceTeleport )
void OVRGrabber.GrabEnd ( )
void OVRGrabber.GrabbableRelease ( Vector3 linearVelocity, Vector3 angularVelocity )
virtual void OVRGrabber.GrabVolumeEnable ( bool enabled )
virtual void OVRGrabber.OffhandGrabbed ( OVRGrabbable grabbable )

Object Data Documentation

void OVRGrabber.FixedUpdate ( )
void OVRGrabber.OnUpdatedAnchors ( )
void OVRGrabber.OnDestroy ( )
void OVRGrabber.OnTriggerEnter ( Collider otherCollider )
void OVRGrabber.OnTriggerExit ( Collider otherCollider )
The documentation for this class was generated from the following file: Oculus/VR/Scripts/Util/OVRGrabber.cs