getVec3 method

Vector3 getVec3(
  1. String name
)

Effective value of a vec3 parameter, the assigned value if set, otherwise the sidecar default. Throws on an unknown name or wrong type.

Implementation

Vector3 getVec3(String name) {
  final f = _readFloats(_slot(name, FmatType.vec3).offsetBytes, 3);
  return Vector3(f[0], f[1], f[2]);
}