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

CircleSurface Class

Extends MonoBehaviour, ISurfacePatch
Used for interaction with circular surfaces.
Computes the closest world point on a coordinate plane defined by the X and Y axes of the transform, within a provided radius from the transform’s origin.

Fields

Transform Transform[Get]
ISurface BackingSurface[Get]

Protected Functions

virtual void Start ( )

Member Functions

Raycast to the surface with an optional maximum distance value.
The arguments and outputs of this operation are in world space.
Parameters
ray
The ray to cast, with position and direction both defined in world space
hit
The returned hit data in world space if the raycast hit the surface, default otherwise
maxDistance
If greater than zero, maximum distance of raycast; if zero, distance is unconstrained
Returns
True if the raycast hit the surface, false otherwise
Find the nearest point to the surface.
The arguments and outputs of this operation are in world space.
Parameters
point
The point, in world space, for which the nearest point on the surface must be found
hit
The returned hit data in world space if a nearest point could be found, default otherwise
maxDistance
If greater than zero, maximum distance of check; if zero distance is unconstrained
Returns
True if the racyast hit the surface, false otherwise
void InjectAllCircleProximityField
( PlaneSurface planeSurface )
void InjectAllCircleSurface
( PlaneSurface planeSurface )
void InjectPlaneSurface
( PlaneSurface planeSurface )
void InjectOptionalRadius
( float radius )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon