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

ColliderSurface Class

Extends MonoBehaviour, ISurface, IBounds
The primary solid surface used by the Interaction SDK, this is an ISurface constructed using a Unity Collider to characterize the topology of the surface.
This type is particularly useful for making existing in-scene objects interactable by simply connecting providing a ColliderSurface to represent their existing colliders in Interaction SDK logic.

Fields

Implementation of ISurface.Transform; for details, please refer to the related documentation provided for that property.
Implementation of IBounds.Bounds; for details, please refer to the related documentation provided for that property.

Protected Functions

virtual void Start ( )

Member Functions

Implementation of ISurface.Raycast(in Ray, out SurfaceHit, float); for details, please refer to the related documentation provided for that property.
Implementation of ISurface.ClosestSurfacePoint(in Vector3, out SurfaceHit, float); for details, please refer to the related documentation provided for that property.
Injects all required dependencies for a dynamically instantiated ColliderSurface; effectively wraps InjectCollider(Collider).
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Sets Unity Collider for a dynamically instantiated ColliderSurface.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon