RedGPU API - v3.0.0-Alpha
    Preparing search index...

    Represents an instance of a 3D mesh object with instancing capabilities.

    Index

    Constructors

    Properties

    inited: boolean = false
    localMatrix: mat4 = ...
    modelMatrix: mat4 = ...
    normalModelMatrix: mat4 = ...

    Accessors

    Methods

    • Sets the position of the object.

      Parameters

      • x: number

        The x coordinate of the position.

      • Optionaly: number

        The y coordinate of the position, defaults to x if not provided.

      • Optionalz: number

        The z coordinate of the position, defaults to x if not provided.

      Returns void

    • Sets the rotation of an object in three-dimensional space.

      Parameters

      • rotationX: number

        The rotation around the x-axis, in degrees.

      • OptionalrotationY: number

        The rotation around the y-axis, in degrees. Defaults to rotationX if not provided.

      • OptionalrotationZ: number

        The rotation around the z-axis, in degrees. Defaults to rotationX if not provided.

      Returns void

    • Set the scale of the object along the x, y, and z axes. If only the x parameter is provided, the object is uniformly scaled along all axes.

      Parameters

      • x: number

        The scale factor along the x-axis.

      • Optionaly: number

        The scale factor along the y-axis. Defaults to the value of x.

      • Optionalz: number

        The scale factor along the z-axis. Defaults to the value of x.

      Returns void