Struct ZeroHeapSkeleton
pub struct ZeroHeapSkeleton {
pub bone_count: usize,
pub parent_indices: [u8; 64],
pub local_transforms: [Transform3D; 64],
pub global_matrices: [[f32; 16]; 64],
}Expand description
Fixed-capacity skeletal rig (MAX_BONES = 64).
Fields§
§bone_count: usizeNumber of active bones in this skeleton (<= 64).
parent_indices: [u8; 64]Parent bone indices. Root bones have parent_index == 255.
local_transforms: [Transform3D; 64]Local rest/bind or animated transforms.
global_matrices: [[f32; 16]; 64]Computed global model-space $4 \times 4$ matrices for GPU upload.
Implementations§
§impl ZeroHeapSkeleton
impl ZeroHeapSkeleton
pub fn evaluate_global_poses(&mut self)
pub fn evaluate_global_poses(&mut self)
Evaluates forward kinematics hierarchy from root to leaves, updating global_matrices.
pub fn export_gpu_dual_quaternion_palette(
&self,
out: &mut [GpuJointMotorPair],
) -> usize
pub fn export_gpu_dual_quaternion_palette( &self, out: &mut [GpuJointMotorPair], ) -> usize
Evaluates model-space bone poses as PGA dual quaternions and exports a hemisphere-aligned
GpuJointMotorPair palette into out for volume-preserving GPU dual-quaternion skinning
(HotZeroHeap). Returns the number of bones exported.
Trait Implementations§
§impl Clone for ZeroHeapSkeleton
impl Clone for ZeroHeapSkeleton
§fn clone(&self) -> ZeroHeapSkeleton
fn clone(&self) -> ZeroHeapSkeleton
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ZeroHeapSkeleton
§impl Debug for ZeroHeapSkeleton
impl Debug for ZeroHeapSkeleton
§impl Default for ZeroHeapSkeleton
impl Default for ZeroHeapSkeleton
§fn default() -> ZeroHeapSkeleton
fn default() -> ZeroHeapSkeleton
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ZeroHeapSkeleton
impl RefUnwindSafe for ZeroHeapSkeleton
impl Send for ZeroHeapSkeleton
impl Sync for ZeroHeapSkeleton
impl Unpin for ZeroHeapSkeleton
impl UnsafeUnpin for ZeroHeapSkeleton
impl UnwindSafe for ZeroHeapSkeleton
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