Skip to main content

RuntimeInstance

Struct RuntimeInstance 

Source
pub struct RuntimeInstance { /* private fields */ }

Implementations§

Source§

impl RuntimeInstance

Source

pub fn new(model: Arc<ModelArena>) -> Self

Source

pub fn new_with_morph_count(model: Arc<ModelArena>, morph_count: usize) -> Self

Source

pub fn new_with_counts( model: Arc<ModelArena>, morph_count: usize, ik_count: usize, ) -> Self

Source

pub fn model(&self) -> &ModelArena

Source

pub fn pose(&self) -> &PoseArena

Source

pub fn pose_mut(&mut self) -> &mut PoseArena

Source

pub fn evaluate_current_pose(&mut self)

Source

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.

Source

pub fn evaluate_rest_pose(&mut self)

Source

pub fn evaluate_clip_frame(&mut self, clip: &AnimationClip, frame: f32)

Source

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.

Source

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.

Source

pub fn world_matrices(&self) -> &[Mat4]

Source

pub fn skinning_matrices(&self) -> &[Mat4]

Source

pub fn morph_weights(&self) -> &[f32]

Source

pub fn ik_enabled(&self) -> &[u8]

Trait Implementations§

Source§

impl Debug for RuntimeInstance

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.