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

RayInteractable Class

Oculus::Interaction::RayInteractable extends Oculus.Interaction.PointerInteractable< RayInteractor, RayInteractable >.

Overview

Object Data

override void
Awake ( )
override void
Start ( )

Public Member Functions

bool
Raycast
( Ray ray,
out SurfaceHit hit,
in float maxDistance,
bool selectSurface )
Called when the interactor has a set of interactables and is calculating which one is closest.
GenerateMovement
( in Pose to,
in Pose source )
Generates movement to move the <cref="RayInteractable" /> from its current position to the target position.
void
Sets all required values for a <cref="RayInteractable" /> on a dynamically instantiated GameObject.
void
InjectSurface
( ISurface surface )
Sets a surface for a dynamically instantiated GameObject.
void
Sets a select surface for a dynamically instantiated GameObject.
void
Sets a movement provider for a dynamically instantiated GameObject.

Details

Properties

ISurface Oculus.Interaction.RayInteractable.Surface
No description available.
IMovementProvider Oculus.Interaction.RayInteractable.MovementProvider
No description available.
int Oculus.Interaction.RayInteractable.TiebreakerScore
No description available.

Object Data

override void Oculus.Interaction.RayInteractable.Awake ( )
No description available.
override void Oculus.Interaction.RayInteractable.Start ( )
No description available.

Member Functions

bool Oculus.Interaction.RayInteractable.Raycast
( Ray ray,
out SurfaceHit hit,
in float maxDistance,
bool selectSurface )
Called when the interactor has a set of interactables and is calculating which one is closest.
Parameters
ray
The position and direction of the ray.
hit
The location, normal, and distance of the ray hit.
maxDistance
The maximum ray length.
selectSurface
True if the raycast has hit the selectable part of the <cref="RayInteractable" />, otherwise false.
Returns
Returns true if hit.
IMovement Oculus.Interaction.RayInteractable.GenerateMovement
( in Pose to,
in Pose source )
Generates movement to move the <cref="RayInteractable" /> from its current position to the target position.
Parameters
to
The target position.
source
The current position.
Returns
Returns the movement that will be applied to the interactable.
void Oculus.Interaction.RayInteractable.InjectAllRayInteractable
( ISurface surface )
Sets all required values for a <cref="RayInteractable" /> on a dynamically instantiated GameObject.
void Oculus.Interaction.RayInteractable.InjectSurface
( ISurface surface )
Sets a surface for a dynamically instantiated GameObject.
void Oculus.Interaction.RayInteractable.InjectOptionalSelectSurface
( ISurface surface )
Sets a select surface for a dynamically instantiated GameObject.
void Oculus.Interaction.RayInteractable.InjectOptionalMovementProvider
( IMovementProvider provider )
Sets a movement provider for a dynamically instantiated GameObject.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon