fromBuffer method

  1. @override
Vector3 fromBuffer(
  1. BufferAttribute<NativeArray<num>> attribute,
  2. int index
)
override

Implementation

@override
Vector3 fromBuffer(BufferAttribute attribute, int index) {
  x = attribute.getX(index)?.toDouble() ?? x;
  y = attribute.getY(index)?.toDouble() ?? y;
  z = attribute.getZ(index)?.toDouble() ?? z;

  return this;
}