Provides an interface for picking colliders that can be assigned to individual entities in a scene for specific picking behaviour. Used with the RaycastPicker picking object.

See also:

  • away3d.entities.Entity#pickingCollider

  • away3d.core.pick.RaycastPicker

Methods

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

Sets the position and direction of a picking ray in local coordinates to the entity.

Parameters:

localDirection

The position vector in local coordinates

localPosition

The direction vector in local coordinates

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

Tests a SubMesh object for a collision with the picking ray.

Parameters:

subMesh

The SubMesh instance to be tested.

pickingCollisionVO

The collision object used to store the collision results

shortestCollisionDistance

The current value of the shortest distance to a detected collision along the ray.