Package | away3d.core.pick |
Class | public class AS3PickingCollider |
Inheritance | AS3PickingCollider PickingColliderBase Object |
Implements | IPickingCollider |
RaycastPicker
picking object.
See also
Method | Defined By | ||
---|---|---|---|
AS3PickingCollider(findClosestCollision:Boolean = false)
Creates a new AS3PickingCollider object. | AS3PickingCollider | ||
setLocalRay(localPosition:Vector3D, localDirection:Vector3D):void | PickingColliderBase | ||
testSubMeshCollision(subMesh:SubMesh, pickingCollisionVO:PickingCollisionVO, shortestCollisionDistance:Number, ignoreFacesLookingAway:Boolean):Boolean
Tests a SubMesh object for a collision with the picking ray. | AS3PickingCollider |
AS3PickingCollider | () | Constructor |
public function AS3PickingCollider(findClosestCollision:Boolean = false)
Creates a new AS3PickingCollider
object.
findClosestCollision:Boolean (default = false ) — Determines whether the picking collider searches for the closest collision along the ray. Defaults to false.
|
testSubMeshCollision | () | method |
public function testSubMeshCollision(subMesh:SubMesh, pickingCollisionVO:PickingCollisionVO, shortestCollisionDistance:Number, ignoreFacesLookingAway:Boolean):Boolean
Tests a SubMesh
object for a collision with the picking ray.
Parameters
subMesh:SubMesh — The SubMesh instance to be tested.
| |
pickingCollisionVO:PickingCollisionVO — The collision object used to store the collision results
| |
shortestCollisionDistance:Number — The current value of the shortest distance to a detected collision along the ray.
| |
ignoreFacesLookingAway:Boolean |
Boolean |