An object that can be grabbed and thrown by OVRGrabber.
More...
|
| 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...
|
| |
An object that can be grabbed and thrown by OVRGrabber.
◆ GrabBegin()
| virtual void OVRGrabbable.GrabBegin |
( |
OVRGrabber |
hand, |
|
|
Collider |
grabPoint |
|
) |
| |
|
virtual |
◆ GrabEnd()
| virtual void OVRGrabbable.GrabEnd |
( |
Vector3 |
linearVelocity, |
|
|
Vector3 |
angularVelocity |
|
) |
| |
|
virtual |
◆ Start()
| virtual void OVRGrabbable.Start |
( |
| ) |
|
|
protectedvirtual |
◆ m_allowOffhandGrab
| bool OVRGrabbable.m_allowOffhandGrab = true |
|
protected |
◆ m_grabbedBy
◆ m_grabbedCollider
| Collider OVRGrabbable.m_grabbedCollider = null |
|
protected |
◆ m_grabbedKinematic
| bool OVRGrabbable.m_grabbedKinematic = false |
|
protected |
◆ m_grabPoints
| Collider [] OVRGrabbable.m_grabPoints = null |
|
protected |
◆ m_snapOffset
| Transform OVRGrabbable.m_snapOffset |
|
protected |
◆ m_snapOrientation
| bool OVRGrabbable.m_snapOrientation = false |
|
protected |
◆ m_snapPosition
| bool OVRGrabbable.m_snapPosition = false |
|
protected |
◆ allowOffhandGrab
| bool OVRGrabbable.allowOffhandGrab |
|
get |
If true, the object can currently be grabbed.
◆ grabbedBy
Returns the OVRGrabber currently grabbing this object.
◆ grabbedRigidbody
| Rigidbody OVRGrabbable.grabbedRigidbody |
|
get |
The Rigidbody of the collider that was used to grab this object.
◆ grabbedTransform
| Transform OVRGrabbable.grabbedTransform |
|
get |
The transform at which this object was grabbed.
◆ grabPoints
| Collider [] OVRGrabbable.grabPoints |
|
get |
The contact point(s) where the object was grabbed.
◆ isGrabbed
| bool OVRGrabbable.isGrabbed |
|
get |
If true, the object is currently grabbed.
◆ snapOffset
| Transform OVRGrabbable.snapOffset |
|
get |
An offset relative to the OVRGrabber where this object can snap when grabbed.
◆ snapOrientation
| bool OVRGrabbable.snapOrientation |
|
get |
If true, the object's orientation will snap to match snapOffset when grabbed.
◆ snapPosition
| bool OVRGrabbable.snapPosition |
|
get |
If true, the object's position will snap to match snapOffset when grabbed.
The documentation for this class was generated from the following file: