director,lingo中. 

mousedown的repeat中貌似每次都需要有足够的等待时间,否则会很难响应。

下面repeat中的首句put删除以后,3d场景的响应效率反而会非常低下。

 疑问! 

on mouseDown me
  p_lastdownH = the mouseH
  p_angle = 0
  repeat while the mousedown 
    put the mouseh
    _angle =  (the mouseH - p_lastdownH).float * 0.1
    pScene.model("My Cube").rotate(0,0,_angle)
    updateStage
    p_lastdownH = the mouseH
    p_angle = p_angle + _angle
  end repeat
end

 

解释:

尚无 

 

相关文章:

  • 2021-06-29
  • 2021-06-03
  • 2021-06-02
  • 2021-11-14
  • 2021-06-06
  • 2022-02-07
  • 2021-11-06
猜你喜欢
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-11-25
  • 2021-12-16
相关资源
相似解决方案