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

ColliderSurface Class

Oculus::Interaction::Surfaces::ColliderSurface extends MonoBehaviour.
Oculus::Interaction::Surfaces::ColliderSurface extends Oculus.Interaction.Surfaces.ISurface.
Oculus::Interaction::Surfaces::ColliderSurface extends Oculus.Interaction.Surfaces.IBounds.

Overview

Properties

Transform
A transform for the surface.
Bounds
Bounds[Get]
The world space axis-aligned bounding box (AABB)

Object Data

void
Start ( )

Public Member Functions

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

Details

Properties

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

Object Data

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

Member Functions

bool Oculus.Interaction.Surfaces.ColliderSurface.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
bool Oculus.Interaction.Surfaces.ColliderSurface.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
void Oculus.Interaction.Surfaces.ColliderSurface.InjectAllColliderSurface
( Collider collider )
No description available.
void Oculus.Interaction.Surfaces.ColliderSurface.InjectCollider
( Collider collider )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon