OculusSampleFramework.DistanceGrabbable Class Reference
Inheritance diagram for OculusSampleFramework.DistanceGrabbable:

Public Attributes | |
string | m_materialColorField |
Protected Member Functions | |
override void | Start () |
Properties | |
bool | InRange [get, set] |
bool | Targeted [get, set] |
![]() | |
bool | allowOffhandGrab [get] |
If true, the object can currently be grabbed. More... | |
bool | isGrabbed [get] |
If true, the object is currently grabbed. More... | |
bool | snapPosition [get] |
If true, the object's position will snap to match snapOffset when grabbed. More... | |
bool | snapOrientation [get] |
If true, the object's orientation will snap to match snapOffset when grabbed. More... | |
Transform | snapOffset [get] |
An offset relative to the OVRGrabber where this object can snap when grabbed. More... | |
OVRGrabber | grabbedBy [get] |
Returns the OVRGrabber currently grabbing this object. More... | |
Transform | grabbedTransform [get] |
The transform at which this object was grabbed. More... | |
Rigidbody | grabbedRigidbody [get] |
The Rigidbody of the collider that was used to grab this object. More... | |
Collider [] | grabPoints [get] |
The contact point(s) where the object was grabbed. More... | |
Additional Inherited Members | |
![]() | |
virtual void | GrabBegin (OVRGrabber hand, Collider grabPoint) |
Notifies the object that it has been grabbed. More... | |
virtual void | GrabEnd (Vector3 linearVelocity, Vector3 angularVelocity) |
Notifies the object that it has been released. More... | |
![]() | |
bool | m_allowOffhandGrab = true |
bool | m_snapPosition = false |
bool | m_snapOrientation = false |
Transform | m_snapOffset |
Collider [] | m_grabPoints = null |
bool | m_grabbedKinematic = false |
Collider | m_grabbedCollider = null |
OVRGrabber | m_grabbedBy = null |
Member Function Documentation
◆ Start()
|
protectedvirtual |
Reimplemented from OVRGrabbable.
Member Data Documentation
◆ m_materialColorField
string OculusSampleFramework.DistanceGrabbable.m_materialColorField |
Property Documentation
◆ InRange
|
getset |
◆ Targeted
|
getset |
The documentation for this class was generated from the following file:
- Oculus/SampleFramework/Core/DistanceGrab/Scripts/DistanceGrabbable.cs