瀏覽代碼

Controller model example animates models;

bjorn 1 年之前
父節點
當前提交
c96764dbf8
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)
   for hand, model in pairs(models) do
     if lovr.headset.isTracked(hand) then
+      lovr.headset.animate(model)
       pass:draw(model, mat4(lovr.headset.getPose(hand)))
     end
   end