InstancedFlow class

A helper class for creating instanced versions of flow, where the instances are placed on the curve.

Inheritance

Constructors

InstancedFlow(dynamic count, dynamic curveCount, dynamic geometry, dynamic material)
@param {number} count The number of instanced elements @param {number} curveCount The number of curves to preallocate for @param {Geometry} geometry The geometry to use for the instanced mesh @param {Material} material The material to use for the instanced mesh
factory
InstancedFlow.create(dynamic mesh, dynamic curveCount)

Properties

curveArray List
getter/setter pairinherited
curveLengthArray List
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
object3D ↔ Mesh
getter/setter pairinherited
offsets List<int>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splineTexure ↔ DataTexture
getter/setter pairinherited
uniforms Map<String, dynamic>
getter/setter pairinherited
whichCurve List<int>
getter/setter pair

Methods

moveAlongCurve(dynamic amount) → dynamic
inherited
moveIndividualAlongCurve(dynamic index, int offset) → dynamic
Move an individual element along the curve by a specific amount
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCurve(dynamic index, dynamic curveNo) → dynamic
Select which curve to use for an element
toString() String
A string representation of this object.
inherited
updateCurve(dynamic index, dynamic curve) → dynamic
inherited
writeChanges(dynamic index) → dynamic
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 needing update.

Operators

operator ==(Object other) bool
The equality operator.
inherited