Struct skeletal_animation::skeleton::Skeleton
source · pub struct Skeleton {
pub joints: Vec<Joint>,
}
Fields§
§joints: Vec<Joint>
All joints in the skeleton
Implementations§
source§impl Skeleton
impl Skeleton
sourcepub fn from_collada(skeleton: &Skeleton) -> Skeleton
pub fn from_collada(skeleton: &Skeleton) -> Skeleton
Build a skeleton fromm a Collada skeleton
pub fn calculate_global_poses<T: Transform, TOutput: Transform + FromTransform<T>>( &self, local_poses: &[T], global_poses: &mut [TOutput] )
pub fn get_joint_index(&self, joint_name: &str) -> Option<JointIndex>
pub fn draw<R: Resources, F: Factory<R>, T: Transform>( &self, global_poses: &[T], debug_renderer: &mut DebugRenderer<R, F>, draw_labels: bool )
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Skeleton
impl Send for Skeleton
impl Sync for Skeleton
impl Unpin for Skeleton
impl UnwindSafe for Skeleton
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more