diff options
Diffstat (limited to 'examples/property_animation/ex_property_animation.c')
-rw-r--r-- | examples/property_animation/ex_property_animation.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/property_animation/ex_property_animation.c b/examples/property_animation/ex_property_animation.c index 5ca0836..c548db4 100644 --- a/examples/property_animation/ex_property_animation.c +++ b/examples/property_animation/ex_property_animation.c @@ -83,12 +83,11 @@ int main() { render_frame_begin(&core->renderer); - mat4 model = mat4_translation(VEC3_ZERO); quat rot = animation_sample(track.rotation, t).rotation; // quat rot = quat_ident(); transform tf = transform_create(VEC3_ZERO, rot, 1.0); - - draw_model(&core->renderer, &game.camera, cube, tf, &our_scene); + mat4 model_tf = transform_to_mat(&tf); + draw_model(&core->renderer, &game.camera, cube, &model_tf, &our_scene); // gfx_backend_draw_frame(&core->renderer, &game.camera, model, NULL); |