Nocturna
    Preparing search index...

    Class ParentNode

    Index

    Constructors

    • Constructs a new ParentNode.

      Parameters

      • position: Vector3

        The initial position of the node.

      • scene: Scene

        The Babylon.js scene.

      Returns ParentNode

    Properties

    Type: string = "parent_node"

    Methods

    • Parents a mesh to this node.

      Parameters

      • child: Mesh

        The mesh to parent.

      Returns void

    • Asynchronously loads the rotation sound effect.

      Returns Promise<void>

    • Disposes the node and removes all observers.

      Returns void

    • Returns the current rotation of the node as a Vector3.

      Returns Vector3

    • Rotates the node around the specified axis, optionally in the inverted direction. Plays a sound effect on rotation.

      Parameters

      • axis: "x" | "y" | "z"

        The axis to rotate ("x", "y", or "z").

      • inverted: boolean = false

        If true, rotates in the negative direction.

      Returns void

    • Serializes the node's position for saving or exporting.

      Returns any

      An object containing the node's position.

    • Sets up keyboard actions for rotating the node using the InputHandler.

      Parameters

      Returns void