bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class BabylonNode

    Index

    Constructors

    • Parameters

      • context: Context
      • drawHelper: DrawHelper

      Returns Bit.BabylonNode

    Methods

    • 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

    • 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

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

      Parameters

      Returns TransformNode

      A new node

    • 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

    • 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

    • 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

    • 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

    • 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

    • 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

    • 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

    • Gets children of the node

      Parameters

      • inputs: NodeDto

        Node from which to get the children

      Returns Node[]

      List of children nodes in the array

    • Gets parent of the node

      Parameters

      • inputs: NodeDto

        Node from which to get a parent

      Returns Node

      Parent node

    • 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

    • Gets the root node

      Returns TransformNode

      Root node

    • 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

    • Rotates the node around the origin and given axis

      Parameters

      Returns void

    • Sets the absolute position of the node

      Parameters

      Returns void

    • Sets the direction of the node

      Parameters

      Returns void

    • Sets the new parent to the node

      Parameters

      Returns void

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

      Parameters

      Returns void