Auto-selecting picking collider for entity objects. Used with the 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:

  • away3d.entities.Entity#pickingCollider

  • away3d.core.pick.RaycastPicker

Constructor

@:value({ findClosestCollision : false })new(findClosestCollision:Bool = false)

Creates a new AutoPickingCollider object.

Parameters:

findClosestCollision

Determines whether the picking collider searches for the closest collision along the ray. Defaults to false.

Variables

@:value(1024)triangleThreshold:Int = 1024

Represents the number of triangles encountered in a SubMesh object over which PixelBender is used.

Methods

setLocalRay(localPosition:Vector3D, localDirection:Vector3D):Void

@inheritDoc

testSubMeshCollision(subMesh:SubMesh, pickingCollisionVO:PickingCollisionVO, shortestCollisionDistance:Float):Bool

@inheritDoc