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

AxisAlignedBox Class

Extends MonoBehaviour

Properties

Bounds : Bounds
[Get]
Signature
Bounds Oculus.Interaction.Surfaces.AxisAlignedBox.Bounds
Size : Vector3
[Get][Set]
Signature
Vector3 Oculus.Interaction.Surfaces.AxisAlignedBox.Size
Transform : Transform
[Get]
A transform for the surface.
Signature
Transform Oculus.Interaction.Surfaces.AxisAlignedBox.Transform

Protected Methods

Start ()
Signature
void Oculus.Interaction.Surfaces.AxisAlignedBox.Start()
Returns
void

Methods

ClosestSurfacePoint ( point , hit , maxDistance )
Find nearest point to surface.
Signature
bool Oculus.Interaction.Surfaces.AxisAlignedBox.ClosestSurfacePoint(in Vector3 point, out SurfaceHit hit, float maxDistance)
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.AxisAlignedBox.Raycast(in Ray ray, out SurfaceHit hit, float maxDistance)
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