Browse Source

Controller model example animates models;

bjorn 1 year ago
parent
commit
c96764dbf8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/Interaction/Controller_Models/main.lua

+ 1 - 0
examples/Interaction/Controller_Models/main.lua

@@ -8,6 +8,7 @@ end
 function lovr.draw(pass)
 function lovr.draw(pass)
   for hand, model in pairs(models) do
   for hand, model in pairs(models) do
     if lovr.headset.isTracked(hand) then
     if lovr.headset.isTracked(hand) then
+      lovr.headset.animate(model)
       pass:draw(model, mat4(lovr.headset.getPose(hand)))
       pass:draw(model, mat4(lovr.headset.getPose(hand)))
     end
     end
   end
   end