Enum blender_armature::Bone[][src]

pub enum Bone {
    Matrix(Vec<f32>),
    DualQuat(Vec<f32>),
}

A bone in an armature. Can either be a dual quaternion or a matrix. When you export bones from Blender they come as matrices - BlenderArmature lets you convert them into dual quaternions which are usually more favorable for when implementing skeletal animation.

TODO: Maybe? Use cgmath::Matrix4 instead of our Vec. We'd want a custom serializer / deserializer so that we don't need to litter our JSON with Matrix4 object declarations when we output it from Blender.

Variants

Methods

impl Bone
[src]

Get a vector representation of your bone data. You'll usually pass this vector of your bone data to the GPU.

Trait Implementations

impl Debug for Bone
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Bone
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Bone

impl Sync for Bone