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


Can be created using method new:

Lib.Away3D.Core.Pick.PickingCollisionVO.new(entity)

Creates a new PickingCollisionVO object.

entity - The entity to which this collision object belongs. (Entity)


Created PickingCollisionVO object has properties:

entity

The entity to which this collision object belongs. (Entity)

index

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

localNormal

The local normal vector at the position of the collision. (Vector3D)

localPosition

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

localRayDirection

The direction of the colliding ray in local coordinates. (Vector3D)

localRayPosition

The starting position of the colliding ray in local coordinates. (Vector3D)

rayDirection

The direction of the colliding ray in scene coordinates. (Vector3D)

rayEntryDistance

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

rayOriginIsInsideBounds

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

rayPosition

The starting position of the colliding ray in scene coordinates. (Vector3D)

renderable

The IRenderable associated with a collision: SegmentSet, SkyBox, Sprite3D, SubMesh

subGeometryIndex

The index of the subGeometry where the event took place.

uv

The uv coordinate at the position of the collision. (Point)

Created with the Personal Edition of HelpNDoc: Full-featured Help generator