API reference

ClippedCylinderSurface Class

Extends MonoBehaviour
Used to manually clip a <cref="CylinderSurface" /> to the desired size.

Properties

BackingSurface : ISurface
[Get]
Signature
ISurface BackingSurface
Cylinder : Cylinder
[Get]
Signature
Cylinder Cylinder
Transform : Transform
[Get]
Signature
Transform Transform

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void

Methods

ClosestSurfacePoint ( point , hit , maxDistance )
Signature
bool ClosestSurfacePoint(in Vector3 point, out SurfaceHit hit, float maxDistance=0)
Parameters
point: in Vector3
hit: out SurfaceHit
maxDistance: float
Returns
bool
GetClipped ( clipped )
Signature
bool GetClipped(out CylinderSegment clipped)
Parameters
clipped: out CylinderSegment
Returns
bool
GetClippers ()
Signature
IReadOnlyList< ICylinderClipper > GetClippers()
Returns
IReadOnlyList< ICylinderClipper >
InjectAllClippedCylinderSurface ( surface , clippers )
Signature
void InjectAllClippedCylinderSurface(CylinderSurface surface, IEnumerable< ICylinderClipper > clippers)
Parameters
clippers: IEnumerable< ICylinderClipper >
Returns
void
InjectClippers ( clippers )
Signature
void InjectClippers(IEnumerable< ICylinderClipper > clippers)
Parameters
clippers: IEnumerable< ICylinderClipper >
Returns
void
InjectCylinderSurface ( surface )
Signature
void InjectCylinderSurface(CylinderSurface surface)
Parameters
Returns
void
Raycast ( ray , hit , maxDistance )
Signature
bool Raycast(in Ray ray, out SurfaceHit hit, float maxDistance=0)
Parameters
ray: in Ray
hit: out SurfaceHit
maxDistance: float
Returns
bool