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

SurfaceUtils Class

Tools for working Surfaces on Interactables.

Overview

Static Public Member Functions

static float
ComputeDistanceAbove
( ISurfacePatch surfacePatch,
Vector3 point,
float radius )
The distance above a surface along the closest normal.
static float
ComputeTangentDistance
( ISurfacePatch surfacePatch,
Vector3 point,
float radius )
The distance to a surface along the tangent.
static float
ComputeDepth
( ISurfacePatch surfacePatch,
Vector3 point,
float radius )
The distance below a surface along the closest normal.
static float
ComputeDistanceFrom
( ISurfacePatch surfacePatch,
Vector3 point,
float radius )
The distance from the closest point as computed by the proximity field and surface.

Details

Static Member Functions

static float Oculus.Interaction.SurfaceUtils.ComputeDistanceAbove
( ISurfacePatch surfacePatch,
Vector3 point,
float radius )
The distance above a surface along the closest normal.
Returns 0 for where the sphere touches the surface along the normal.
Parameters
interactable
The PokeInteractable surface to test
point
The origin point to compute distance from the surface
radius
The radius of the sphere positioned at the origin point
static float Oculus.Interaction.SurfaceUtils.ComputeTangentDistance
( ISurfacePatch surfacePatch,
Vector3 point,
float radius )
The distance to a surface along the tangent.
Parameters
interactable
The PokeInteractable surface to test
point
The origin point to compute distance from the surface
radius
The radius of the sphere positioned at the origin point
static float Oculus.Interaction.SurfaceUtils.ComputeDepth
( ISurfacePatch surfacePatch,
Vector3 point,
float radius )
The distance below a surface along the closest normal.
always positive.
Parameters
interactable
the pokeinteractable surface to test
point
the origin point to compute distance from the surface
radius
the radius of the sphere positioned at the origin point
static float Oculus.Interaction.SurfaceUtils.ComputeDistanceFrom
( ISurfacePatch surfacePatch,
Vector3 point,
float 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.
Parameters
interactable
the pokeinteractable surface to test
point
the origin point to compute distance from the surface
radius
the radius of the sphere positioned at the origin point
Did you find this page helpful?
Thumbs up icon
Thumbs down icon