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

IConecastTarget Interface

An object in the scene that can be conecasted by Conecaster.

Properties

The unique ID representing this target.
This should be unique among IConecastTargets, meaning multiple targets should not have the same value for this field. If multiple targets do share the same Id, the behavior is undefined.

Member Functions

A conecast is defined here as the closest point on the object's surface to the Cone.Ray, where that point is within the cone's volume.
Parameters
cone
Only elements within this cone volume should be considered as valid results.
hitPoint
The surface point on the object nearest the cone ray.
surfaceNormal
The normal of the object's surface at the hitPoint
Returns
True if closest point on object is within cone volume.
If a successful conecast is performed on this IConecastTarget, where TryConecast returns true, this method will be called to fetch child targets for further conecasting.
Parameters
children
An empty list should be provided here to be populated with child targets, if they exist.
Returns
True if any child targets are added to the list.
Optional.
In the event the conecaster cannot determine the best target, this can be implemented to return a comparison value. See the IComparable interface for information on the return value.
Did you find this page helpful?