Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Class RaycastNodeResult

Raycast result for nodes.

Hierarchy

Index

Constructors

constructor

Methods

getDistance

  • getDistance(): number

getNodeId

  • getNodeId(): bigint

getNormal

  • getNormal(): [number, number, number]
  • Normal vector at the intersection point. Note not all raycasts support generating normals, so this value should be checked for a 0-length vector before using.

    priv

    none

    Returns [number, number, number]

getPointHit

  • getPointHit(): [number, number, number]

getPrismId

  • getPrismId(): bigint

getRayDirection

  • getRayDirection(): [number, number, number]

getRayOrigin

  • getRayOrigin(): [number, number, number]

getTransitionNodeId

  • getTransitionNodeId(): bigint
  • Returns the ID of the Node transitioning between enter/exit states.

    This is the previous raycast hit node on cursor enter and the upcoming raycast hit node on cursor exit

    priv

    none

    Returns bigint

getTransitionNodePrismId

  • getTransitionNodePrismId(): bigint
  • Returns the Prism ID of the Node transitioning between enter/exit states.

    This is the previous raycast hit node's Prism on cursor enter and the upcoming raycast hit node's Prism on cursor exit

    priv

    none

    Returns bigint

Static Create

Generated using TypeDoc