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

ClippedPlaneSurface Class

Extends MonoBehaviour, IClippedSurface< IBoundsClipper >
Clips a plane to create an interactable surface.
If there are no clippers assigned, the surface area remains infinite.

Properties

List< IBoundsClipper > Clippers[Get]

Fields

ISurface BackingSurface[Get]
Transform Transform[Get]

Member Functions

IReadOnlyList< IBoundsClipper > GetClippers ( )
Clip a provided Bounds using IBoundsClippers
Parameters
bounds
The bounding box to clip
clipped
The clipped result
Returns
True if resulting bounds are valid, false if resulting bounds are fully clipped.
bool ClosestSurfacePoint
( in Vector3 point,
out SurfaceHit hit,
float maxDistance )
bool Raycast
( in Ray ray,
out SurfaceHit hit,
float maxDistance )
void InjectAllClippedPlaneSurface
( PlaneSurface planeSurface,
IEnumerable< IBoundsClipper > clippers )
void InjectPlaneSurface
( PlaneSurface planeSurface )
void InjectClippers
( IEnumerable< IBoundsClipper > clippers )

Protected Functions

virtual void Awake ( )
virtual void Start ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon