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

AxisAlignedBox Class

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

Overview

Properties

Vector3
Size[Get]
Transform
A transform for the surface.
Bounds
Bounds[Get]

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.

Object Data

void
Start ( )

Details

Properties

Vector3 Oculus.Interaction.Surfaces.AxisAlignedBox.Size
No description available.
Transform Oculus.Interaction.Surfaces.AxisAlignedBox.Transform
A transform for the surface.
Bounds Oculus.Interaction.Surfaces.AxisAlignedBox.Bounds
No description available.

Member Functions

bool Oculus.Interaction.Surfaces.AxisAlignedBox.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.AxisAlignedBox.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

Object Data

void Oculus.Interaction.Surfaces.AxisAlignedBox.Start ( )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon