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

PlaneSurface Class

Extends MonoBehaviour, ISurface, IBounds

Member Enumerations

Enumeration NormalFacing

Used for interaction with flat surfaces, and acts in much the same way as Unity’s Plane.
Backward
Normal faces along the transform's negative Z axis.
Forward
Normal faces along the transform's positive Z axis.

Properties

NormalFacing Facing[Get]
bool DoubleSided[Get]
Vector3 Normal[Get]
A transform for the surface.
The world space axis-aligned bounding box (AABB)

Member Functions

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
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
Plane GetPlane ( )
void InjectAllPlaneSurface
( NormalFacing facing,
bool doubleSided )
void InjectNormalFacing
( NormalFacing facing )
void InjectDoubleSided
( bool doubleSided )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon