1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use amethyst_core::cgmath::Matrix4;
use amethyst_core::specs::prelude::{Component, DenseVecStorage, Entity};
use hibitset::BitSet;
#[derive(Debug, Clone)]
pub struct Joint {
pub inverse_bind_matrix: Matrix4<f32>,
pub skin: Entity,
}
impl Component for Joint {
type Storage = DenseVecStorage<Self>;
}
#[derive(Debug)]
pub struct Skin {
pub joints: Vec<Entity>,
pub meshes: BitSet,
pub bind_shape_matrix: Matrix4<f32>,
}
impl Component for Skin {
type Storage = DenseVecStorage<Self>;
}