Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new Node3D(id: string, parent?: Nullable<Node3D>, translate?: Vec, rotate?: Vec, scale?: number | Vec, body?: any): Node3D

Properties

body

body: any

children

children: Node3D[]

display

display: boolean

enabled

enabled: boolean

id

id: string

invMat

invMat: Vec

mat

mat: Vec

parent

parent: Nullable<Node3D>

rotate

rotate: Vec

scale

scale: number | Vec

translate

translate: Vec

Methods

Protected _deleteChild

  • _deleteChild(node: number | Node3D, clazz: any): boolean

appendChild

childForPoint

  • Checks all children in reverse order, then (if no child matched) node itself for containment of given point (in world/screen coords). Returns NodeInfo object with matched node (if any) or undefined.

    Important: Disabled nodes and their children will be skipped!

    Parameters

    • p: ReadonlyVec

      -

    Returns undefined | NodeInfo<Node3D>

containsLocalPoint

  • containsLocalPoint(_: ReadonlyVec): boolean
  • Returns true, if given point is contained within the boundary of this node. Since this class is used as generic base implementation for other, more specialized scene graph nodes, this base impl always returns false (meaning these nodes cannot will not be selectable by the user unless a subclass overrides this method).

    Parameters

    • _: ReadonlyVec

    Returns boolean

copy

deleteChild

  • deleteChild(node: number | Node3D): boolean

draw

  • draw<T>(ctx: T): void

insertChild

mapGlobalPoint

  • mapGlobalPoint(p: ReadonlyVec): undefined | Vec

mapLocalPointToNode

  • mapLocalPointToNode(dest: Node3D, p: ReadonlyVec): undefined | Vec

toHiccup

  • toHiccup(ctx?: any): any
  • Future support planned. No immediate users of this method in a 3D context available thus far.

    Parameters

    • Optional ctx: any

      arbitrary user data

    Returns any

update

  • update(): void

Generated using TypeDoc