MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / bloom_update_model_animation

Function bloom_update_model_animation

native/ios/src/lib.rs:1581–1589  ·  view source on GitHub ↗
(handle: f64, anim_index: f64, time: f64, scale: f64, px: f64, py: f64, pz: f64, rot_sin: f64, rot_cos: f64)

Source from the content-addressed store, hash-verified

1579
1580#[no_mangle]
1581pub extern "C" fn bloom_update_model_animation(handle: f64, anim_index: f64, time: f64, scale: f64, px: f64, py: f64, pz: f64, rot_sin: f64, rot_cos: f64) {
1582 let eng = engine();
1583 eng.models.update_model_animation(handle, anim_index as usize, time as f32);
1584 if let Some(anim) = eng.models.get_animation(handle) {
1585 if !anim.joint_matrices.is_empty() {
1586 eng.renderer.set_joint_matrices_scaled(&anim.joint_matrices, scale as f32, [px as f32, py as f32, pz as f32], rot_sin as f32, rot_cos as f32);
1587 }
1588 }
1589}
1590
1591#[no_mangle]
1592pub extern "C" fn bloom_get_model_mesh_count(handle: f64) -> f64 {

Callers 1

updateModelAnimationFunction · 0.50

Calls 4

get_animationMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected