Capítulo 559 de 859

Chapter 559: InstancedFlow

Core Idea

An instanced version of Flow for making meshes bend around curves, where the instances are placed on the curve.

This module can only be used with WebGLRenderer.

Code Examples

import { InstancedFlow } from 'three/addons/modifiers/CurveModifier.js';
  • What it demonstrates: Typical usage of InstancedFlow.

Reference Tables

Constructor

Signature
new InstancedFlow( count : number, curveCount : number, geometry : Geometry, material : Material )

Methods

MethodDescription
.moveIndividualAlongCurve( index : number, offset : number )Move an individual element along the curve by a specific amount.
.setCurve( index : number, curveNo : number )Select which curve to use for an element.
.writeChanges( index : number )The extra information about which curve and curve position is stored in the translation components of the matrix for the instanced objects This writes that information to the matrix and marks it as n…

Key Takeaways

  1. InstancedFlow extends: Flow
  2. Key methods: moveIndividualAlongCurve, setCurve, writeChanges.

Connects To