zoukankan      html  css  js  c++  java
  • 3D场景响应mouseDown的怪状[未解]

    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

    解释:

    尚无 

  • 相关阅读:
    线程
    进程2
    进程
    socketserver
    黏包
    初始网络编程
    模块
    super
    mro c3算法
    日志固定格式
  • 原文地址:https://www.cnblogs.com/mumuliang/p/2236523.html
Copyright © 2011-2022 走看看