Packageaway3d.core.pick
Classpublic class PickingCollisionVO
InheritancePickingCollisionVO Inheritance Object

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


Public Properties
 PropertyDefined By
  entity : Entity
The entity to which this collision object belongs.
PickingCollisionVO
  localNormal : Vector3D
The local normal vector at the position of the collision.
PickingCollisionVO
  localPosition : Vector3D
The local position of the collision on the entity's surface.
PickingCollisionVO
  localRayDirection : Vector3D
The direction of the colliding ray in local coordinates.
PickingCollisionVO
  localRayPosition : Vector3D
The starting position of the colliding ray in local coordinates.
PickingCollisionVO
  rayEntryDistance : Number
The distance along the ray from the starting position to the calculated intersection entry point with the entity.
PickingCollisionVO
  rayOriginIsInsideBounds : Boolean
Determines if the ray position is contained within the entity bounds.
PickingCollisionVO
  renderable : IRenderable
The IRenderable associated with a collision.
PickingCollisionVO
  uv : Point
The uv coordinate at the position of the collision.
PickingCollisionVO
Public Methods
 MethodDefined By
  
Creates a new PickingCollisionVO object.
PickingCollisionVO
Property Detail
entityproperty
public var entity:Entity

The entity to which this collision object belongs.

localNormalproperty 
public var localNormal:Vector3D

The local normal vector at the position of the collision.

localPositionproperty 
public var localPosition:Vector3D

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

localRayDirectionproperty 
public var localRayDirection:Vector3D

The direction of the colliding ray in local coordinates.

localRayPositionproperty 
public var localRayPosition:Vector3D

The starting position of the colliding ray in local coordinates.

rayEntryDistanceproperty 
public var rayEntryDistance:Number

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

rayOriginIsInsideBoundsproperty 
public var rayOriginIsInsideBounds:Boolean

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

See also

renderableproperty 
public var renderable:IRenderable

The IRenderable associated with a collision.

uvproperty 
public var uv:Point

The uv coordinate at the position of the collision.

Constructor Detail
PickingCollisionVO()Constructor
public function PickingCollisionVO(entity:Entity)

Creates a new PickingCollisionVO object.

Parameters
entity:Entity — The entity to which this collision object belongs.