API reference

OVRGrabber Class

Extends MonoBehaviour
Allows grabbing and throwing of objects with the OVRGrabbable component on them.

Fields

float grabBegin[Get]
float grabEnd[Get]

Protected Fields

bool m_parentHeldObject[Get]
bool m_moveHandPosition[Get]
Transform m_gripTransform[Get]
Collider[] m_grabVolumes[Get]
OVRInput.Controller m_controller[Get]
Transform m_parentTransform[Get]
GameObject m_player[Get]
bool m_grabVolumeEnabled[Get]
Vector3 m_lastPos[Get]
Quaternion m_lastRot[Get]
Quaternion m_anchorOffsetRotation[Get]
Vector3 m_anchorOffsetPosition[Get]
float m_prevFlex[Get]
OVRGrabbable m_grabbedObj[Get]
Vector3 m_grabbedObjectPosOff[Get]
Quaternion m_grabbedObjectRotOff[Get]
Dictionary< OVRGrabbable, int > m_grabCandidates[Get]
bool m_operatingWithoutOVRCameraRig[Get]

Properties

The currently grabbed object.

Member Functions

void ForceRelease
( OVRGrabbable grabbable )
virtual void Update ( )

Protected Functions

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