Public Member Functions |
Public Attributes |
Protected Member Functions |
Protected Attributes |
Properties |
List of all members
OculusSampleFramework.DistanceGrabber Class Reference
Allows grabbing and throwing of objects with the DistanceGrabbable component on them. More...
Inheritance diagram for OculusSampleFramework.DistanceGrabber:
Public Member Functions | |
| override void | Update () |
Public Member Functions inherited from OVRGrabber | |
| void | ForceRelease (OVRGrabbable grabbable) |
Public Attributes | |
| bool | m_preventGrabThroughWalls |
Public Attributes inherited from OVRGrabber | |
| float | grabBegin = 0.55f |
| float | grabEnd = 0.35f |
Protected Member Functions | |
| override void | Start () |
| override void | GrabBegin () |
| override void | MoveGrabbedObject (Vector3 pos, Quaternion rot, bool forceTeleport=false) |
| bool | FindTarget (out DistanceGrabbable dgOut, out Collider collOut) |
| bool | FindTargetWithSpherecast (out DistanceGrabbable dgOut, out Collider collOut) |
| override void | GrabVolumeEnable (bool enabled) |
| override void | OffhandGrabbed (OVRGrabbable grabbable) |
Protected Member Functions inherited from OVRGrabber | |
| virtual void | Awake () |
| void | CheckForGrabOrRelease (float prevFlex) |
| void | GrabEnd () |
| void | GrabbableRelease (Vector3 linearVelocity, Vector3 angularVelocity) |
| void | SetPlayerIgnoreCollision (GameObject grabbable, bool ignore) |
Protected Attributes | |
| DistanceGrabbable | m_target |
| Collider | m_targetCollider |
Protected Attributes inherited from OVRGrabber | |
| bool | m_parentHeldObject = false |
| bool | m_moveHandPosition = false |
| Transform | m_gripTransform = null |
| Collider [] | m_grabVolumes = null |
| OVRInput.Controller | m_controller |
| Transform | m_parentTransform |
| GameObject | m_player |
| bool | m_grabVolumeEnabled = true |
| Vector3 | m_lastPos |
| Quaternion | m_lastRot |
| Quaternion | m_anchorOffsetRotation |
| Vector3 | m_anchorOffsetPosition |
| float | m_prevFlex |
| OVRGrabbable | m_grabbedObj = null |
| Vector3 | m_grabbedObjectPosOff |
| Quaternion | m_grabbedObjectRotOff |
| Dictionary< OVRGrabbable, int > | m_grabCandidates = new Dictionary<OVRGrabbable, int>() |
| bool | m_operatingWithoutOVRCameraRig = true |
Properties | |
| bool | UseSpherecast [get, set] |
Properties inherited from OVRGrabber | |
| OVRGrabbable | grabbedObject [get] |
| The currently grabbed object. More... | |
Detailed Description
Allows grabbing and throwing of objects with the DistanceGrabbable component on them.
Member Function Documentation
◆ FindTarget()
|
protected |
◆ FindTargetWithSpherecast()
|
protected |
◆ GrabBegin()
|
protectedvirtual |
Reimplemented from OVRGrabber.
◆ GrabVolumeEnable()
|
protectedvirtual |
Reimplemented from OVRGrabber.
◆ MoveGrabbedObject()
|
protectedvirtual |
Reimplemented from OVRGrabber.
◆ OffhandGrabbed()
|
protectedvirtual |
Reimplemented from OVRGrabber.
◆ Start()
|
protectedvirtual |
Reimplemented from OVRGrabber.
◆ Update()
|
virtual |
Reimplemented from OVRGrabber.
Member Data Documentation
◆ m_preventGrabThroughWalls
| bool OculusSampleFramework.DistanceGrabber.m_preventGrabThroughWalls |
◆ m_target
|
protected |
◆ m_targetCollider
|
protected |
Property Documentation
◆ UseSpherecast
|
getset |
The documentation for this class was generated from the following file:
- Oculus/SampleFramework/Core/DistanceGrab/Scripts/DistanceGrabber.cs
Public Member Functions inherited from
1.8.13