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

ColliderSurface Class

Extends MonoBehaviour

Properties

Bounds : Bounds
[Get]
The world space axis-aligned bounding box (AABB)
Signature
Bounds Oculus.Interaction.Surfaces.ColliderSurface.Bounds
Transform : Transform
[Get]
A transform for the surface.
Signature
Transform Oculus.Interaction.Surfaces.ColliderSurface.Transform

Protected Methods

Start ()
Signature
virtual void Oculus.Interaction.Surfaces.ColliderSurface.Start()
Returns
void

Methods

ClosestSurfacePoint ( point , hit , maxDistance )
Find nearest point to surface.
Signature
bool Oculus.Interaction.Surfaces.ColliderSurface.ClosestSurfacePoint(in Vector3 point, out SurfaceHit hit, float maxDistance=0)
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
InjectAllColliderSurface ( collider )
Signature
void Oculus.Interaction.Surfaces.ColliderSurface.InjectAllColliderSurface(Collider collider)
Parameters
collider: Collider
Returns
void
InjectCollider ( collider )
Signature
void Oculus.Interaction.Surfaces.ColliderSurface.InjectCollider(Collider collider)
Parameters
collider: Collider
Returns
void
Raycast ( ray , hit , maxDistance )
Raycast to the surface with an optional maximum distance value.
Signature
bool Oculus.Interaction.Surfaces.ColliderSurface.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