Value object for a picking collision returned by a picking collider. Created as unique objects on entities

See also:

  • away3d.entities.Entity#pickingCollisionVO

  • away3d.core.pick.IPickingCollider

Constructor

new(entity:Entity)

Creates a new PickingCollisionVO object.

Parameters:

entity

The entity to which this collision object belongs.

Variables

entity:Entity

The entity to which this collision object belongs.

index:Int

The index of the face where the event took pl ace.

localNormal:Vector3D

The local normal vector at the position of the collision.

localPosition:Vector3D

The local position of the collision on the entity's surface.

localRayDirection:Vector3D

The direction of the colliding ray in local coordinates.

localRayPosition:Vector3D

The starting position of the colliding ray in local coordinates.

rayDirection:Vector3D

The direction of the colliding ray in scene coordinates.

rayEntryDistance:Float

The distance along the ray from the starting position to the calculated intersection entry point with the entity.

rayOriginIsInsideBounds:Bool

Determines if the ray position is contained within the entity bounds.

See also:

  • away3d.entities.Entity#bounds

rayPosition:Vector3D

The starting position of the colliding ray in scene coordinates.

renderable:IRenderable

The IRenderable associated with a collision.

subGeometryIndex:Int

The index of the subGeometry where the event took place.

uv:Point

The uv coordinate at the position of the collision.