Module ssbh_data::anim_data

source ·
Expand description

Types for working with Anim data in .nuanmb files.

§Examples

Animation data is stored in a hierarchy. Values for each frame are stored at the TrackData level.

use ssbh_data::prelude::*;

let anim = AnimData::from_file("model.nuanmb")?;

for group in anim.groups {
    for node in group.nodes {
        for track in node.tracks {
            println!("Frame Count: {}", track.values.len());
        }
    }
}

§File Differences

Unmodified files are not guaranteed to be binary identical after saving. Compressed animations use lossy compression for all data types except TrackValues::Boolean. When converting to Anim, compression is enabled for a track if compression would save space. This may produce differences with the original due to compression differences. These errors are small in practice but may cause gameplay differences such as online desyncs.

Modules§

Structs§

Enums§