| Package | away3d.core.pick |
| Class | public class AutoPickingCollider |
| Inheritance | AutoPickingCollider Object |
| Implements | IPickingCollider |
RaycastPicker picking object.
Chooses between pure AS3 picking and PixelBender picking based on a threshold property representing
the number of triangles encountered in a SubMesh object over which PixelBender is used.
See also
| Property | Defined By | ||
|---|---|---|---|
| triangleThreshold : uint = 1024
Represents the number of triangles encountered in a SubMesh object over which PixelBender is used. | AutoPickingCollider | ||
| Method | Defined By | ||
|---|---|---|---|
AutoPickingCollider(findClosestCollision:Boolean = false)
Creates a new AutoPickingCollider object. | AutoPickingCollider | ||
setLocalRay(localPosition:Vector3D, localDirection:Vector3D):void
Sets the position and direction of a picking ray in local coordinates to the entity. | AutoPickingCollider | ||
testSubMeshCollision(subMesh:SubMesh, pickingCollisionVO:PickingCollisionVO, shortestCollisionDistance:Number):Boolean
Tests a SubMesh object for a collision with the picking ray. | AutoPickingCollider | ||
| triangleThreshold | property |
public var triangleThreshold:uint = 1024
Represents the number of triangles encountered in a SubMesh object over which PixelBender is used.
| AutoPickingCollider | () | Constructor |
public function AutoPickingCollider(findClosestCollision:Boolean = false)
Creates a new AutoPickingCollider object.
findClosestCollision:Boolean (default = false) — Determines whether the picking collider searches for the closest collision along the ray. Defaults to false.
|
| setLocalRay | () | method |
public function setLocalRay(localPosition:Vector3D, localDirection:Vector3D):voidSets the position and direction of a picking ray in local coordinates to the entity.
Parameters
localPosition:Vector3D — The position vector in local coordinates
| |
localDirection:Vector3D — The direction vector in local coordinates
|
| testSubMeshCollision | () | method |
public function testSubMeshCollision(subMesh:SubMesh, pickingCollisionVO:PickingCollisionVO, shortestCollisionDistance:Number):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.
|
Boolean |