three-nebula API
    Preparing search index...

    Class Rotation

    Sets the rotation property on initialized particles.

    Hierarchy

    • default
      • Rotation
    Index
    • Constructs a Rotation property instance.

      Parameters

      • Optionalx: number

        X axis rotation

      • Optionaly: number

        Y axis rotation

      • Optionalz: number

        Z axis rotation

      • useEmitterRotation: boolean = true

        Determines if we should use the emitter's rotation as the starting rotation

      • isEnabled: boolean = true

        Determines if the initializer should be enabled or not

      Returns Rotation

    isEnabled: boolean
    rotation: Vector3
    type: string
    useEmitterRotation: boolean
    • Sets the particle's initial rotation.

      Parameters

      • particle: Particle

        the particle to initialize the property on

      Returns void

    • Returns a new instance of the initializer from the JSON object passed.

      Parameters

      • json: RotationJSON

      Returns Rotation

    • Determines if the initializer requires a WebGL API to be provided to its constructor.

      Returns boolean