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

NavMeshSurface Class

Oculus::Interaction::Surfaces::NavMeshSurface extends MonoBehaviour.
Oculus::Interaction::Surfaces::NavMeshSurface extends Oculus.Interaction.Surfaces.ISurface.

Overview

Properties

string
float
float
bool
Transform
A transform for the surface.

Object Data

void
Start ( )

Public Member Functions

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

Details

Properties

string Oculus.Interaction.Surfaces.NavMeshSurface.AreaName
No description available.
float Oculus.Interaction.Surfaces.NavMeshSurface.SnapDistance
No description available.
float Oculus.Interaction.Surfaces.NavMeshSurface.VoxelSize
No description available.
bool Oculus.Interaction.Surfaces.NavMeshSurface.CalculateHitNormals
No description available.
Transform Oculus.Interaction.Surfaces.NavMeshSurface.Transform
A transform for the surface.

Object Data

virtual void Oculus.Interaction.Surfaces.NavMeshSurface.Start ( )
No description available.

Member Functions

bool Oculus.Interaction.Surfaces.NavMeshSurface.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
bool Oculus.Interaction.Surfaces.NavMeshSurface.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
Did you find this page helpful?
Thumbs up icon
Thumbs down icon