update method

  1. @override
dynamic update(
  1. dynamic frameTime,
  2. dynamic elapsed
)
override

Implementation

@override
update(frameTime,elapsed) {
  if (this.mesh.visible) {

    this.updateViewVector();
    this.slice();
    this.updateGeometry();
   // print("fire"+frameTime.toString()+" "+elapsed.toString());
   // this.mesh.material?.uniforms['time']={'value':elapsed};//['value'] = elapsed;
    this.mesh.material?.uniforms['time']['value'] = elapsed;
  }
}