API reference
API reference
Select your platform
No SDKs available
No versions available

OVRGrabbable Class

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

Overview

Object Data

Properties

bool
If true, the object can currently be grabbed.
bool
If true, the object is currently grabbed.
bool
If true, the object's position will snap to match snapOffset when grabbed.
bool
If true, the object's orientation will snap to match snapOffset when grabbed.
Transform
An offset relative to the OVRGrabber where this object can snap when grabbed.
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[]
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.

Object Data

void
Start ( )

Details

Object Data

bool OVRGrabbable.m_allowOffhandGrab
No description available.
bool OVRGrabbable.m_snapPosition
No description available.
bool OVRGrabbable.m_snapOrientation
No description available.
Transform OVRGrabbable.m_snapOffset
No description available.
Collider [] OVRGrabbable.m_grabPoints
No description available.
bool OVRGrabbable.m_grabbedKinematic
No description available.
Collider OVRGrabbable.m_grabbedCollider
No description available.
OVRGrabber OVRGrabbable.m_grabbedBy
No description available.

Properties

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 Functions

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

virtual void OVRGrabbable.Start ( )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon