Struct ssbh_data::skel_data::SkelData[][src]

pub struct SkelData {
    pub major_version: u16,
    pub minor_version: u16,
    pub bones: Vec<BoneData>,
}
Expand description

The data associated with a Skel file. The supported version is 1.0.

Fields

major_version: u16minor_version: u16bones: Vec<BoneData>

Implementations

Tries to read and convert the SKEL from path. The entire file is buffered for performance.

Tries to read and convert the SKEL from reader. For best performance when opening from a file, use from_file instead.

Converts the data to SKEL and writes to the given writer. For best performance when writing to a file, use write_to_file instead.

Converts the data to SKEL and writes to the given path. The entire file is buffered for performance.

Calculates the world transform for bone by accumulating the transform with the parents transform recursively. Returns the resulting matrix in row-major order.

let world_transform = data.calculate_world_transform(&data.bones[0]);

Trait Implementations

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.