Packageaway3d.core.pick
Classpublic class AS3PickingCollider
InheritanceAS3PickingCollider Inheritance PickingColliderBase Inheritance Object
Implements IPickingCollider

Pure AS3 picking collider for entity objects. Used with the RaycastPicker picking object.

See also

away3d.entities.Entity.pickingCollider
away3d.core.pick.RaycastPicker


Protected Properties
 PropertyDefined By
 InheritedrayDirection : Vector3D
PickingColliderBase
 InheritedrayPosition : Vector3D
PickingColliderBase
Public Methods
 MethodDefined By
  
AS3PickingCollider(findClosestCollision:Boolean = false)
Creates a new AS3PickingCollider object.
AS3PickingCollider
 Inherited
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
Protected Methods
 MethodDefined By
 Inherited
getCollisionNormal(indexData:Vector.<uint>, vertexData:Vector.<Number>, triangleIndex:uint):Vector3D
PickingColliderBase
 Inherited
getCollisionUV(indexData:Vector.<uint>, uvData:Vector.<Number>, triangleIndex:uint, v:Number, w:Number, u:Number, uvOffset:uint, uvStride:uint):Point
PickingColliderBase
Constructor Detail
AS3PickingCollider()Constructor
public function AS3PickingCollider(findClosestCollision:Boolean = false)

Creates a new AS3PickingCollider object.

Parameters
findClosestCollision:Boolean (default = false) — Determines whether the picking collider searches for the closest collision along the ray. Defaults to false.
Method Detail
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

Returns
Boolean