isLikelyZUp property

bool get isLikelyZUp

Heuristic: in Z-up files the tallest extent of the mesh is usually Z and the root bone is rotated about X by ~90°.

Implementation

bool get isLikelyZUp {
  if (frames.isEmpty || frames.first.isEmpty) return false;
  final root = frames.first.first;
  if (root == null) return false;
  return (root[3].abs() - 1.5708).abs() < 0.01;
}