#animation #skeleton #ik #graphics

skelly

骨骼动画和逆运动学

7个不稳定版本 (3个破坏性更新)

0.4.0 2021年8月2日
0.3.0 2021年3月19日
0.2.0 2021年3月19日
0.1.3 2021年3月18日

#1353 in 算法

每月21次下载

MIT/Apache

67KB
991

skelly

crates docs actions MIT/Apache loc

骨骼动画的Crate。

可选提供逆运动学功能。

示例

use {skelly::Skelly, na::{Point3, Vector3, Isometry3}};

// build a skelly with leg and two arms.
let mut skelly = Skelly::<f32>::new();
let foot = skelly.add_root(Point3::origin());
let leg = skelly.attach(Vector3::z().into(), foot);
let waist = skelly.attach(Vector3::z().into(), leg);

let left_shoulder = skelly.attach(Vector3::z().into(), waist);
let left_arm = skelly.attach((-Vector3::x()).into(), left_shoulder);
let left_palm = skelly.attach((-Vector3::x()).into(), left_arm);

let right_shoulder = skelly.attach(Vector3::z().into(), waist);
let right_arm = skelly.attach(Vector3::x().into(), right_shoulder);
let right_palm = skelly.attach(Vector3::x().into(), right_arm);

// Write global isometries of every joint into an array.
let mut globals = vec![Isometry3::identity(); skelly.len()];
skelly.write_globals(&Isometry3::identity(), &mut globals);

查看工作示例 examples/demo.rs

许可证

许可协议为以下之一

由您选择。

贡献

除非您明确声明,否则任何有意提交以包含在作品中的贡献,根据Apache-2.0许可证的定义,应以上述双许可方式,而不附加任何额外的条款或条件。

捐赠

Become a patron

依赖关系

~3MB
~61K SLoC