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

ISurface Interface

Properties

Transform : Transform
[Get]
A transform for the surface.
Signature
Transform Oculus.Interaction.Surfaces.ISurface.Transform

Methods

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