Capítulo 548 de 859

Chapter 548: Flow

Core Idea

A modifier for making meshes bend around curves.

This module can only be used with WebGLRenderer. When using WebGPURenderer, import the class from CurveModifierGPU.js.

Code Examples

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

Reference Tables

Constructor

Signature
new Flow( mesh : Mesh, numberOfCurves : number )

Methods

MethodDescription
.moveAlongCurve( amount : number )Moves the mesh along the curve.
.updateCurve( index : number, curve : Curve )Updates the curve for the given curve index.

Key Takeaways

  1. Key methods: moveAlongCurve, updateCurve.

Connects To