writeShapeValues method

  1. @override
void writeShapeValues(
  1. ShapeValues values
)

Gives values what shapeKey is made from, one by one, so a renderer can tell each frame whether the mesh changed without making a key. A shape of the engine's gives plain numbers; the default gives shapeKey itself. The renderer's, not a game's.

Implementation

@override
void writeShapeValues(ShapeValues values) => values
  ..add(radius)
  ..add(height)
  ..addInt(segments)
  ..addBool(smooth);