CastRayOnGeometry(BoundVector, GeometryRayCastSettings)

Finds geometry entities intersecting input BoundVector and returns them in list of GeometryRayCastHit. These are returned in the order they are hit, each item containing the entity and BoundVector normal to point hit.

Declaration Syntax

public static IEnumerable<GeometryRayCastHit> CastRayOnGeometry(BoundVector castVector, GeometryRayCastSettings settings)

Parameters

castVector(BoundVector)

Starting location and direction of cast ray.

settings(GeometryRayCastSettings)

Optional settings containing what geometry entity types hits will return.