Finds first collision with tree2.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XOrientedBoxTree..::.HitInfo FindFirstHit(
	XOrientedBoxTree tree2,
	Matrix transform2,
	XCollisionDetection mode,
	XOrientedBoxTree..::.BoxHitCallback boxHitCallback,
	XOrientedBoxTree..::.FaceTestCallback faceTestCallback
)

Parameters

tree2
Type: SGP.XSpace..::.XOrientedBoxTree
The XOrientedBoxTree box tree.
transform2
Type: Matrix
The coordinate Matrix transform.
mode
Type: SGP.XSpace..::.XCollisionDetection
The XCollisionDetection collision detection mode.
boxHitCallback
Type: SGP.XSpace..::.XOrientedBoxTree..::.BoxHitCallback
The XOrientedBoxTree..::.BoxHitCallback box intersection delegate.
faceTestCallback
Type: SGP.XSpace..::.XOrientedBoxTree..::.FaceTestCallback
The XOrientedBoxTree..::.FaceTestCallback face intersection delegate.

Return Value

Returns the XOrientedBoxTree..::.HitInfo intersection information.

Exceptions

ExceptionCondition
System..::.ArgumentNullException tree2 is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also