createTrack method

dynamic createTrack(
  1. dynamic v0,
  2. dynamic v1,
  3. dynamic v2,
  4. dynamic v3,
)

Implementation

createTrack(v0, v1, v2, v3) {
  switch (this.path) {
    case PATH_PROPERTIES.weights:
      return NumberKeyframeTrack(v0, v1, v2, v3);
      break;
    case PATH_PROPERTIES.rotation:
      return QuaternionKeyframeTrack(v0, v1, v2, v3);
      break;

    case PATH_PROPERTIES.position:
    case PATH_PROPERTIES.scale:
    default:
      return VectorKeyframeTrack(v0, v1, v2, v3);
      break;
  }
}