pub struct RuntimeInstance { /* private fields */ }Implementations§
Source§impl RuntimeInstance
impl RuntimeInstance
pub fn new(model: Arc<ModelArena>) -> Self
pub fn new_with_morph_count(model: Arc<ModelArena>, morph_count: usize) -> Self
pub fn new_with_counts( model: Arc<ModelArena>, morph_count: usize, ik_count: usize, ) -> Self
pub fn model(&self) -> &ModelArena
pub fn pose(&self) -> &PoseArena
pub fn pose_mut(&mut self) -> &mut PoseArena
pub fn evaluate_current_pose(&mut self)
pub fn evaluate_current_pose_with_ik_options(&mut self, options: IkSolveOptions)
Sourcepub fn evaluate_current_pose_without_ik(&mut self)
pub fn evaluate_current_pose_without_ik(&mut self)
Evaluate the current pose by updating world matrices only, without running any IK solver. This is useful for diagnostics that need to inspect clip/VMD state before IK is applied.
pub fn evaluate_rest_pose(&mut self)
pub fn evaluate_clip_frame(&mut self, clip: &AnimationClip, frame: f32)
pub fn evaluate_clip_frame_with_ik_options( &mut self, clip: &AnimationClip, frame: f32, options: IkSolveOptions, )
Sourcepub fn evaluate_clip_frame_without_ik(
&mut self,
clip: &AnimationClip,
frame: f32,
)
pub fn evaluate_clip_frame_without_ik( &mut self, clip: &AnimationClip, frame: f32, )
Evaluate a clip frame but stop before solving IK. Applies the clip to
the pose, expands morphs, and updates world matrices - the same setup
as Self::evaluate_clip_frame but without calling solve_enabled_ik.
Useful for diagnostics that need to inspect pre-IK runtime state.
Sourcepub fn expand_morphs(&mut self)
pub fn expand_morphs(&mut self)
Expand group morphs and apply bone morph offsets.
Called automatically from Self::evaluate_clip_frame. Exposed publicly so
that hosts manually driving PoseArena can trigger morph expansion
before calling Self::evaluate_current_pose.
pub fn world_matrices(&self) -> &[Mat4]
pub fn skinning_matrices(&self) -> &[Mat4]
pub fn morph_weights(&self) -> &[f32]
pub fn reset_ik_runtime_stats(&mut self)
pub fn ik_runtime_stats(&self) -> &[IkSolverRuntimeStats]
pub fn ik_enabled(&self) -> &[u8] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeInstance
impl RefUnwindSafe for RuntimeInstance
impl Send for RuntimeInstance
impl Sync for RuntimeInstance
impl Unpin for RuntimeInstance
impl UnsafeUnpin for RuntimeInstance
impl UnwindSafe for RuntimeInstance
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