Unity 1.39 Reference Guide

OVRGrabbable Class Reference

An object that can be grabbed and thrown by OVRGrabber.
MonoBehaviour inherited by OVRGrabbable.

Object Data

bool
bool
bool
Transform
Collider []
bool
Collider
OVRGrabber

Properties

bool
If true, the object can currently be grabbed.
bool
isGrabbed ( ) [Get]
If true, the object is currently grabbed.
bool
snapPosition ( ) [Get]
If true, the object's position will snap to match snapOffset when grabbed.
bool
snapOrientation ( ) [Get]
If true, the object's orientation will snap to match snapOffset when grabbed.
Transform
snapOffset ( ) [Get]
An offset relative to the OVRGrabber where this object can snap when grabbed.
OVRGrabber
grabbedBy ( ) [Get]
Returns the OVRGrabber currently grabbing this object.
Transform
The transform at which this object was grabbed.
Rigidbody
The Rigidbody of the collider that was used to grab this object.
Collider []
grabPoints ( ) [Get]
The contact point(s) where the object was grabbed.

Public Member Functions

void
GrabBegin ( OVRGrabber hand, Collider grabPoint )
Notifies the object that it has been grabbed.
void
GrabEnd ( Vector3 linearVelocity, Vector3 angularVelocity )
Notifies the object that it has been released.

Private Member Functions

void
Awake ( )
void

Object Data

void
Start ( )

Object Data Documentation

bool OVRGrabbable.m_allowOffhandGrab ( )
bool OVRGrabbable.m_snapPosition ( )
bool OVRGrabbable.m_snapOrientation ( )
Transform OVRGrabbable.m_snapOffset ( )
Collider [] OVRGrabbable.m_grabPoints ( )
bool OVRGrabbable.m_grabbedKinematic ( )
Collider OVRGrabbable.m_grabbedCollider ( )
OVRGrabber OVRGrabbable.m_grabbedBy ( )

Property Documentation

bool OVRGrabbable.allowOffhandGrab ( )
If true, the object can currently be grabbed.
bool OVRGrabbable.isGrabbed ( )
If true, the object is currently grabbed.
bool OVRGrabbable.snapPosition ( )
If true, the object's position will snap to match snapOffset when grabbed.
bool OVRGrabbable.snapOrientation ( )
If true, the object's orientation will snap to match snapOffset when grabbed.
Transform OVRGrabbable.snapOffset ( )
An offset relative to the OVRGrabber where this object can snap when grabbed.
OVRGrabber OVRGrabbable.grabbedBy ( )
Returns the OVRGrabber currently grabbing this object.
Transform OVRGrabbable.grabbedTransform ( )
The transform at which this object was grabbed.
Rigidbody OVRGrabbable.grabbedRigidbody ( )
The Rigidbody of the collider that was used to grab this object.
Collider [] OVRGrabbable.grabPoints ( )
The contact point(s) where the object was grabbed.

Member Function Documentation

virtual void OVRGrabbable.GrabBegin ( OVRGrabber hand, Collider grabPoint )
Notifies the object that it has been grabbed.
virtual void OVRGrabbable.GrabEnd ( Vector3 linearVelocity, Vector3 angularVelocity )
Notifies the object that it has been released.

Object Data Documentation

void OVRGrabbable.Awake ( )
void OVRGrabbable.OnDestroy ( )

Object Data Documentation

virtual void OVRGrabbable.Start ( )
The documentation for this class was generated from the following file: Oculus/VR/Scripts/Util/OVRGrabbable.cs