Hledá první kolizi s tree2.
Jmenný prostor:
SGP.XSpaceKnihovna: SGPRTL (v SGPRTL)
Verze: dll
Syntaxe
C# |
---|
public XOrientedBoxTree..::.HitInfo FindFirstHit( XOrientedBoxTree tree2, Matrix transform2, XCollisionDetection mode, XOrientedBoxTree..::.BoxHitCallback boxHitCallback, XOrientedBoxTree..::.FaceTestCallback faceTestCallback ) |
Parametry
- tree2
- Typ: SGP.XSpace..::.XOrientedBoxTree
Strom boxů XOrientedBoxTree.
- transform2
- Typ: Matrix
Transformace souřadnice Matrix.
- mode
- Typ: SGP.XSpace..::.XCollisionDetection
Způsob detekce kolize XCollisionDetection.
- boxHitCallback
- Typ: SGP.XSpace..::.XOrientedBoxTree..::.BoxHitCallback
Delegát XOrientedBoxTree..::.BoxHitCallback průniku boxů.
- faceTestCallback
- Typ: SGP.XSpace..::.XOrientedBoxTree..::.FaceTestCallback
Delegát XOrientedBoxTree..::.FaceTestCallback průniku stěn.
Návratová hodnota
Vrátí informace o průniku XOrientedBoxTree..::.HitInfo.
Výjimky
Výjimka | Podmínka |
---|---|
System..::.ArgumentNullException | tree2 je nullNothingnullptrnulová reference (Nothing v Visual Basic). |