euv_core/game/engine3d/animation/enum.rs
1/// Vertex deformation algorithm selected for evaluating a skeletal `Skin3D`.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3pub enum SkinningMode {
4 /// Standard 8-bone linear-blend matrix skinning (LBS).
5 #[default]
6 LinearBlend,
7 /// Volume-preserving hemisphere-aligned dual-quaternion skinning (DQS).
8 DualQuaternion,
9}
10
11/// Composition operator combining an `NlaLayer3D` into the accumulated skeletal pose.
12#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
13pub enum NlaBlendMode {
14 /// Interpolates directly toward the sampled layer pose by layer weight.
15 #[default]
16 Override,
17 /// Layers delta offsets relative to the captured rest pose onto the base pose.
18 Additive,
19}
20
21/// Playback wrap policy controlling how `NlaLayer3D` handles timestamps past clip duration.
22#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
23pub enum NlaRepeatMode {
24 /// Seamlessly wraps playback time modulo clip duration.
25 #[default]
26 Loop,
27 /// Clamps playback time to `[0.0, duration_secs]`.
28 Clamp,
29 /// Oscillates forward and backward across `[0.0, duration_secs]`.
30 PingPong,
31}