Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BabylonNode

Index

Constructors

constructor

  • new BabylonNode(context: Context, geometryHelper: GeometryHelper): BabylonNode
  • Parameters

    • context: Context
    • geometryHelper: GeometryHelper

    Returns BabylonNode

Methods

createNodeFromRotation

  • Creates a node on the origin with the given rotations in the parent coordinate system

    Parameters

    Returns TransformNode

    A new node

createWorldNode

  • createWorldNode(): TransformNode
  • Creates a world node which has root node as his parent

    Returns TransformNode

    A new node whos parent is the root node of the scene

drawNode

  • Draws a node of given size with given colours for every axis

    Parameters

    • inputs: DrawNodeDto

      Contains node data that includes size and colour information

    Returns void

drawNodes

  • Draws a nodes of given size with given colours for every axis

    Parameters

    • inputs: DrawNodesDto

      Contains node data that includes size and colour information

    Returns void

getAbsoluteForwardVector

  • getAbsoluteForwardVector(inputs: NodeDto): number[]
  • Gets the absolute forward facing vector in world space

    Parameters

    • inputs: NodeDto

      Node from which to get the forward vector

    Returns number[]

    Vector as an array of numbers

getAbsolutePosition

  • getAbsolutePosition(inputs: NodeDto): number[]
  • Gets the absolute position of the node as origin vector in world space

    Parameters

    • inputs: NodeDto

      Node from which to get the absolute position

    Returns number[]

    Vector as an array of numbers indicating location of origin in world space

getAbsoluteRightVector

  • getAbsoluteRightVector(inputs: NodeDto): number[]
  • Gets the absolute right facing vector in world space

    Parameters

    • inputs: NodeDto

      Node from which to get the right vector

    Returns number[]

    Vector as an array of numbers

getAbsoluteRotationTransformation

  • getAbsoluteRotationTransformation(inputs: NodeDto): number[]
  • Gets the absolute rotation of the node as a transformation matrix encoded in array of 16 numbers

    Parameters

    • inputs: NodeDto

      Node from which to get the rotation transformation

    Returns number[]

    Transformation as an array of 16 numbers

getAbsoluteUpVector

  • getAbsoluteUpVector(inputs: NodeDto): number[]
  • Gets the absolute up facing vector in world space

    Parameters

    • inputs: NodeDto

      Node from which to get the up vector

    Returns number[]

    Vector as an array of numbers

getChildren

  • getChildren(inputs: NodeDto): Node[]
  • Gets children of the node

    Parameters

    • inputs: NodeDto

      Node from which to get the children

    Returns Node[]

    List of children nodes in the array

getParent

  • Gets parent of the node

    Parameters

    • inputs: NodeDto

      Node from which to get a parent

    Returns Node

    Parent node

getPositionExpressedInLocalSpace

  • getPositionExpressedInLocalSpace(inputs: NodeDto): number[]
  • Gets the position of the node expressed in local space

    Parameters

    • inputs: NodeDto

      Node from which to get the position in local space

    Returns number[]

    Position vector

getRootNode

  • getRootNode(): TransformNode
  • Gets the root node

    Returns TransformNode

    Root node

getRotation

  • getRotation(inputs: NodeDto): number[]
  • Gets the euler rotations

    Parameters

    • inputs: NodeDto

      Node from which to get rotation

    Returns number[]

    Euler rotations of x, y and z angles in the number array

getRotationTransformation

  • getRotationTransformation(inputs: NodeDto): number[]
  • Gets the rotation of the node in local parent coordinate space as a transformation matrix encoded in array of 16 numbers

    Parameters

    • inputs: NodeDto

      Node from which to get the rotation transformation

    Returns number[]

    Transformation as an array of 16 numbers

rotate

  • Rotates the node around the origin and given axis

    Parameters

    Returns void

rotateAroundAxisWithPosition

  • Rotates the node around axis and given position by a given angle

    Parameters

    Returns void

setAbsolutePosition

  • Sets the absolute position of the node

    Parameters

    Returns void

setDirection

  • Sets the direction of the node

    Parameters

    Returns void

setParent

  • Sets the new parent to the node

    Parameters

    Returns void

translate

  • Translates the node by a given direction vector and a distance

    Parameters

    Returns void

Generated using TypeDoc