Polarith AI
1.8

◆ IsNearBounds()

bool IsNearBounds ( BoundsType  type,
Vector3  position,
float  radius 
)

Determines if the entity with the given position and radius is close enough to the bounds specified by type for the bounds to be relevant.

This might be useful, e.g., for the bounds behaviours (Pro only).

Parameters
typeThe BoundsType to be used.
positionThe position to be checked.
radiusThe radius to be checked.
Returns
true if the bounds are relevant, false otherwise.
Imprint