Package | away3d.graphs.bsp |
Class | public final class BSPHitTest |
Inheritance | BSPHitTest Object |
Property | Defined By | ||
---|---|---|---|
lastHittedMeshName : String [read-only]
if a dynamic mesh was added to tree with a name, on hit test you might want retrieve its name
and compare with your saved names list. | BSPHitTest |
Method | Defined By | ||
---|---|---|---|
BSPHitTest(bspTree:BSPTree)
Creates a new BSPHittest object. | BSPHitTest | ||
getIntersectPosition(start:Vector3D, end:Vector3D):Vector3D
Finds the closest intersection along a segment with the BSP planes
| BSPHitTest | ||
getUVIntersectPosition(start:Vector3D, end:Vector3D):Array
Finds the uv's and the map of the face found at the closest intersection, the closest intersection along a segment with the BSP planes
| BSPHitTest |
lastHittedMeshName | property |
lastHittedMeshName:String
[read-only] if a dynamic mesh was added to tree with a name, on hit test you might want retrieve its name and compare with your saved names list. Works only after getUVIntersectPosition method has been used.
public function get lastHittedMeshName():String
BSPHitTest | () | Constructor |
public function BSPHitTest(bspTree:BSPTree)
Creates a new BSPHittest object.
ParametersbspTree:BSPTree — BSPTree instance
|
getIntersectPosition | () | method |
public function getIntersectPosition(start:Vector3D, end:Vector3D):Vector3D
Finds the closest intersection along a segment with the BSP planes
Parameters
start:Vector3D — The starting position (camera position for instance)
| |
end:Vector3D — The position (the camera position for instance)
|
Vector3D — A Vector3D of the intersection. Null if no hit.
|
getUVIntersectPosition | () | method |
public function getUVIntersectPosition(start:Vector3D, end:Vector3D):Array
Finds the uv's and the map of the face found at the closest intersection, the closest intersection along a segment with the BSP planes
Parameters
start:Vector3D — The starting position (camera position for instance)
| |
end:Vector3D — The position (the camera position for instance)
|
Array — An Array or null
array = [intersection, uv, bitmapdata]
[Vector3D, the intersection in space,
UV of the intersection. Null if no hit or nodeleaf is empty,
the bitmapData assigned to the face. Null if there's not]
|