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

DistanceGrabInteractable Class

This interactable makes an object grabbable at a distance.

Properties

Colliders : Collider[]
[Get]
Signature
Collider [] Oculus.Interaction.DistanceGrabInteractable.Colliders
RelativeTo : Transform
[Get]
Signature
Transform Oculus.Interaction.DistanceGrabInteractable.RelativeTo
ResetGrabOnGrabsUpdated : bool
[Get][Set]
Signature
bool Oculus.Interaction.DistanceGrabInteractable.ResetGrabOnGrabsUpdated
Rigidbody : Rigidbody
[Get]
Signature
Rigidbody Oculus.Interaction.DistanceGrabInteractable.Rigidbody

Protected Methods

Awake ()
Signature
override void Oculus.Interaction.DistanceGrabInteractable.Awake()
Returns
override void
Reset ()
Signature
virtual void Oculus.Interaction.DistanceGrabInteractable.Reset()
Returns
void
Start ()
Signature
override void Oculus.Interaction.DistanceGrabInteractable.Start()
Returns
override void

Methods

ApplyVelocities ( linearVelocity , angularVelocity )
Applies velocities to the interactable's <cref="PhysicsGrabbable" /> if it has one.
Signature
void Oculus.Interaction.DistanceGrabInteractable.ApplyVelocities(Vector3 linearVelocity, Vector3 angularVelocity)
Parameters
linearVelocity: Vector3
angularVelocity: Vector3
Returns
void
GenerateMovement ( to )
Moves the interactable to the provided position.
Signature
IMovement Oculus.Interaction.DistanceGrabInteractable.GenerateMovement(in Pose to)
Parameters
to: in Pose
Returns
IMovement
InjectAllGrabInteractable ( rigidbody )
Adds a Rigidbody to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractable.InjectAllGrabInteractable(Rigidbody rigidbody)
Parameters
rigidbody: Rigidbody
Returns
void
InjectOptionalGrabSource ( grabSource )
Adds a grab source to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractable.InjectOptionalGrabSource(Transform grabSource)
Parameters
grabSource: Transform
Returns
void
InjectOptionalMovementProvider ( provider )
Adds a <cref="IMovementProvider" /> to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractable.InjectOptionalMovementProvider(IMovementProvider provider)
Parameters
Returns
void
InjectOptionalPhysicsGrabbable ( physicsGrabbable )
Adds a <cref="PhysicsGrabbable" /> to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractable.InjectOptionalPhysicsGrabbable(PhysicsGrabbable physicsGrabbable)
Parameters
physicsGrabbable: PhysicsGrabbable
Returns
void
InjectRigidbody ( rigidbody )
Adds a Rigidbody to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.DistanceGrabInteractable.InjectRigidbody(Rigidbody rigidbody)
Parameters
rigidbody: Rigidbody
Returns
void