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

ISurface Interface

Overview

Properties

Transform
A transform for the surface.

Public Member Functions

bool
Raycast
( in Ray ray,
out SurfaceHit hit,
float maxDistance )
Raycast to the surface with an optional maximum distance value.
bool
ClosestSurfacePoint
( in Vector3 point,
out SurfaceHit hit,
float maxDistance )
Find nearest point to surface.

Details

Properties

Transform Oculus.Interaction.Surfaces.ISurface.Transform
A transform for the surface.

Member Functions

bool Oculus.Interaction.Surfaces.ISurface.Raycast
( in Ray ray,
out SurfaceHit hit,
float maxDistance )
Raycast to the surface with an optional maximum distance value.
Parameters
ray
The ray to cast
hit
The returned hit data
maxDistance
If greater than zero, maximum distance of raycast
Returns
true if surface was hit
bool Oculus.Interaction.Surfaces.ISurface.ClosestSurfacePoint
( in Vector3 point,
out SurfaceHit hit,
float maxDistance )
Find nearest point to surface.
Parameters
ray
Point to check
hit
The returned hit data
maxDistance
If greater than zero, maximum distance of check
Returns
true if nearest point was found