1. // Set to false to disable this control
    //鼠标控制是否可用
  2. this.enabled = true;
  3.  
  4. // "target" sets the location of focus, where the object orbits around
    //聚焦坐标
  5. this.target = new THREE.Vector3();
  6.  
  7. // How far you can dolly in and out ( PerspectiveCamera only )
    //最大最小相机移动距离(景深相机)
  8. this.minDistance = 0;
  9. this.maxDistance = Infinity;
  10. // How far you can zoom in and out ( OrthographicCamera only )
    //最大最小鼠标缩放大小(正交相机)
  11. this.minZoom = 0;
  12. this.maxZoom = Infinity;
  13.  
  14. // How far you can orbit vertically, upper and lower limits.
  15. // Range is 0 to Math.PI radians.
    //最大仰视角和俯视角
  16. this.minPolarAngle = 0; // radians
  17. this.maxPolarAngle = Math.PI; // radians
  18.  
  19. // How far you can orbit horizontally, upper and lower limits.
  20. // If set, must be a sub-interval of the interval [ - Math.PI, Math.PI ].
    //水平方向视角限制
  21. this.minAzimuthAngle = - Infinity; // radians
  22. this.maxAzimuthAngle = Infinity; // radians
  23.  
  24. // Set to true to enable damping (inertia)
  25. // If damping is enabled, you must call controls.update() in your animation loop
    //惯性滑动,滑动大小默认0.25
  26. this.enableDamping = false;
  27. this.dampingFactor = 0.25;
  28.  
  29. // This option actually enables dollying in and out; left as "zoom" for backwards compatibility.
  30. // Set to false to disable zooming
    //滚轮是否可控制zoom,zoom速度默认1
  31. this.enableZoom = true;
  32. this.zoomSpeed = 1.0;
  33.  
  34. // Set to false to disable rotating
    //是否可旋转,旋转速度
  35. this.enableRotate = true;
  36. this.rotateSpeed = 1.0;
  37.  
  38. // Set to false to disable panning
    //是否可平移,默认移动速度为7px
  39. this.enablePan = true;
  40. this.keyPanSpeed = 7.0; // pixels moved per arrow key push
  41.  
  42. // Set to true to automatically rotate around the target
  43. // If auto-rotate is enabled, you must call controls.update() in your animation loop
    //是否自动旋转,自动旋转速度。默认每秒30圈
  44. this.autoRotate = false;
  45. this.autoRotateSpeed = 2.0; // 30 seconds per round when fps is 60
  46.  
  47. // Set to false to disable use of the keys
    //是否能使用键盘
  48. this.enableKeys = true;
  49.  
  50. // The four arrow keys
    //默认键盘控制上下左右的键
  51. this.keys = { LEFT: 37, UP: 38, RIGHT: 39, BOTTOM: 40 };
  52.  
  53. // Mouse buttons
    //鼠标点击按钮
  54. this.mouseButtons = { ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: THREE.MOUSE.RIGHT };

THREE.OrbitControls参数控制的更多相关文章

  1. spring程序打包war,直接通过-jar启动,并指定spring.profiles.active参数控制多环境配置

    备注:spring boot有内嵌tomcat,jar项目可以用java -jar命令启动,war包也可以,且可以直接指定spring.profiles.active参数控制多环境配置 直接指定传参, ...

  2. MySQL->>innodb_autoinc_lock_mode参数控制auto_increment 插入数据时相关锁的模式

    转自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15498/viewspace-2141640/ ---------------------------------- ...

  3. par函数的las参数-控制x轴和y轴标签的方向

    las 参数控制x轴和y轴的刻度线上的标签与两条轴的防线,可选值为0,1,2,3 0为默认值,代表始终与刻度线平行,代码示例: par(las = 0) plot(1:5, 1:5, main = & ...

  4. par函数的ann 参数-控制图片的注释信息

    ann 参数控制图片的x轴和y轴标签以及标题是否显示 默认值为TRUE, 所以图片有对应的信息时,会显示出来,代码示例 plot(1:5, 1:5, main = "title", ...

  5. R语言学习——图形初阶之折线图与图形参数控制

    plot()是R中为对象作图的一个泛型函数(它的输出将根据所绘制对象类型的不同而变化):plot(x,y,type="b")表示将x置于横轴,y置于纵轴,绘制点集(x,y),然后使 ...

  6. par函数mgp 参数-控制坐标轴的位置

    mgp 参数的值为长度为3的一个向量,默认值为 c(3, 1, 0); 3个数值控制的元素不同 1) 第一个数值:3, 控制xlab 和  ylab的位置 示例用法: par(mfrow = c(1, ...

  7. par函数usr参数-控制坐标系的范围

    在R语言中,会根据数据的范围自动计算x轴和y轴的范围,举个例子 比如绘制一个1到5的散点图:代码示例: plot(1:5, 1:5) 生成的图片如下: 从图片中我们可以看到,x轴的起始位置比1要小,终 ...

  8. par函数fg参数-控制前景色

    fg参数用来控制前景色,其实指的就是x轴和y轴的轴线和刻度线的颜色 在R语言中,会根据fg, col 任何一个参数的值,自动的将两个参数的值设置为相同的值,举个例子: par(fg = "r ...

  9. par函数col参数-控制颜色

    col参数用来控制颜色,其实有一些列的颜色相关的参数,都是以col 开头 col : 控制图片中点,文字以及绘图边框的颜色,代码示例: par(col = "red") plot( ...

随机推荐

  1. 在 Linux 服务器上搭建和配置 Hadoop 集群

    实验条件:3台centos服务器,jdk版本1.8.0,Hadoop 版本2.8.0 注:hadoop安装和搭建过程中都是在用户lb的home目录下,master的主机名为host98,slave的主 ...

  2. JDBC 的 PreparedStatement 与 Statement

    import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import ...

  3. quartz动态job工具类 serviceh注入问题

    package com.heyi.yanglao.common.job.util; import cn.hutool.core.date.DateUtil; import lombok.extern. ...

  4. max_spare_servers到底是个什么意思?

    pm.max_children=500pm.start_servers=280pm.min_spare_servers=50pm.max_spare_servers=500 把max_spare_se ...

  5. group_concat长度限制

    #在MySQL配置文件(my.ini)中默认无该配置项,使用默认值时,值为1024,可在客户端执行下列语句修改: #SET GLOBAL group_concat_max_len = 1024; #该 ...

  6. 2016ACM/ICPC亚洲区大连站现场赛题解报告(转)

    http://blog.csdn.net/queuelovestack/article/details/53055418 下午重现了一下大连赛区的比赛,感觉有点神奇,重现时居然改了现场赛的数据范围,原 ...

  7. linux---网络相关配置,ssh服务,bash命令及优先级,元字符

    - 二:临时配置网络(ip,网关,dns)+永久配置 临时配置: [root@nfs-server ~]# ifconfig ens32: flags=4163<UP,BROADCAST,RUN ...

  8. iptables详解(9):iptables的黑白名单机制

    注意:在参照本文进行iptables实验时,请务必在个人的测试机上进行,因为如果iptables规则设置不当,有可能使你无法连接到远程主机中. 前文中一直在强调一个概念:报文在经过iptables的链 ...

  9. LeetCode OJ:Rotate List(旋转链表)

    Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1 ...

  10. 【Seajs源码分析】2. 工具方法1

    Sea.js: var seajs = global.seajs = { // The current version of Sea.js being used version: "@VER ...