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

OVRGrabbable Class

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

Protected Fields

bool m_allowOffhandGrab[Get]
bool m_snapPosition[Get]
bool m_snapOrientation[Get]
Transform m_snapOffset[Get]
Collider[] m_grabPoints[Get]
bool m_grabbedKinematic[Get]
Collider m_grabbedCollider[Get]
OVRGrabber m_grabbedBy[Get]

Properties

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

Member Functions

Notifies the object that it has been grabbed.
Notifies the object that it has been released.

Protected Functions

virtual void Start ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon