webani - v1.0.0
    Preparing search index...

    A point light that emits light in all directions from a single point in 3D space. It is defined by a position, rotation, color, and intensity.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Optional animation class used for interpolated animations.

    Type declaration

    color: Vector3

    The color of the light.

    extraTransforms: WorldTransform[] = []

    An array of additional world transforms that modify the object.

    intensity: number

    The intensity of the light, controlling how bright the light is.

    The parent transformable object, if any.

    scaleCompensation: boolean = false

    Flag indicating whether to apply scale compensation for the parent object.

    transform: WorldTransform = ...

    The world transform of the object, including position, rotation, and scale.

    useOriginAsCenter: boolean = false

    Flag indicating whether to use the origin as the center of rotation.

    Accessors

    • get extraTransformsMatrixWithoutScale(): Matrix4

      The combined matrix of all extra transforms without scale compensation.

      Returns Matrix4

      A Matrix4 object representing the combined matrix of all extra transforms.

    • get shallowCopy(): this

      Creates a shallow copy of the WebaniTransformable object.

      Returns this

      A new instance of WebaniTransformable with the same properties as the current object.

    Methods