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

SurfaceUtils Class

Tools for working Surfaces on Interactables.

Static Methods

ComputeDepth ( surfacePatch , point , radius )
The distance below a surface along the closest normal.
always positive.
Signature
static float Oculus.Interaction.SurfaceUtils.ComputeDepth(ISurfacePatch surfacePatch, Vector3 point, float radius)
Parameters
surfacePatch: ISurfacePatch
point: Vector3  the origin point to compute distance from the surface
radius: float  the radius of the sphere positioned at the origin point
Returns
float
ComputeDistanceAbove ( surfacePatch , point , radius )
The distance above a surface along the closest normal.
Returns 0 for where the sphere touches the surface along the normal.
Signature
static float Oculus.Interaction.SurfaceUtils.ComputeDistanceAbove(ISurfacePatch surfacePatch, Vector3 point, float radius)
Parameters
surfacePatch: ISurfacePatch
point: Vector3  The origin point to compute distance from the surface
radius: float  The radius of the sphere positioned at the origin point
Returns
float
ComputeDistanceFrom ( surfacePatch , point , radius )
The distance from the closest point as computed by the proximity field and surface.
Returns the distance to the point without taking into account the surface normal.
Signature
static float Oculus.Interaction.SurfaceUtils.ComputeDistanceFrom(ISurfacePatch surfacePatch, Vector3 point, float radius)
Parameters
surfacePatch: ISurfacePatch
point: Vector3  the origin point to compute distance from the surface
radius: float  the radius of the sphere positioned at the origin point
Returns
float
ComputeTangentDistance ( surfacePatch , point , radius )
The distance to a surface along the tangent.
Signature
static float Oculus.Interaction.SurfaceUtils.ComputeTangentDistance(ISurfacePatch surfacePatch, Vector3 point, float radius)
Parameters
surfacePatch: ISurfacePatch
point: Vector3  The origin point to compute distance from the surface
radius: float  The radius of the sphere positioned at the origin point
Returns
float