Options
Menu

Class PickingCollision

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

see

away.base.DisplayObject#pickingCollision

see

away.core.pick.IPickingCollider

class

away.pick.PickingCollision

Hierarchy

  • PickingCollision

Index

Constructors

constructor

  • Creates a new PickingCollision object.

    Parameters

    • entity: IEntity

      The entity to which this collision object belongs.

    Returns PickingCollision

Properties

elementIndex

elementIndex: number

The index of the element where the collision took place.

entity

entity: IEntity

The entity to which this collision object belongs.

globalRayDirection

globalRayDirection: Vector3D

The direction of the colliding ray in scene coordinates.

globalRayPosition

globalRayPosition: Vector3D

The starting position of the colliding ray in scene coordinates.

normal

normal: Vector3D

The local normal vector at the position of the collision.

position

position: Vector3D

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

rayDirection

rayDirection: Vector3D

The direction of the colliding ray in local coordinates.

rayEntryDistance

rayEntryDistance: number

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

rayOriginIsInsideBounds

rayOriginIsInsideBounds: boolean

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

rayPosition

rayPosition: Vector3D

The starting position of the colliding ray in local coordinates.

renderable

renderable: IRenderable

The renderable associated with a collision.

uv

uv: Point

The uv coordinate at the position of the collision.

Generated using TypeDoc