Enum blender_exporter::armature::Bone [−][src]
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 VecMatrix4
object declarations
when we output it from Blender.
Variants
Matrix(Vec<f32>)
DualQuat(Vec<f32>)
Methods
impl Bone
[src]
impl Bone
pub fn vec(&self) -> Vec<f32>
[src]
pub fn vec(&self) -> Vec<f32>
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]
impl Debug for Bone
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl PartialEq<Bone> for Bone
[src]
impl PartialEq<Bone> for Bone
fn eq(&self, other: &Bone) -> bool
[src]
fn eq(&self, other: &Bone) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Bone) -> bool
[src]
fn ne(&self, other: &Bone) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for Bone
[src]
impl<'de> Deserialize<'de> for Bone
fn deserialize<__D>(
__deserializer: __D
) -> Result<Bone, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Bone, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Bone
[src]
impl Serialize for Bone
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more