这个功能比较重要,游戏中的托拽经常要用到,例如,棋类游戏中让棋子走到鼠标指定的位置,还有做模拟城市的游戏中,玩家会将自己选择的建筑物或者植物托拽到某个特定的位置。

In: triggers the process.

True: is activated when the ray intersects an object or a sprite.
False: is activated when the ray doesn't intersect an object.

X: X axis value (Note : this pIn will not be visible if the Use 2D Vector or Use Mouse Coordinates setting is checked.)
Y: Y axis value (Note : this pIn will not be visible if the Use 2D Vector or Use Mouse Coordinates setting is checked.)
Pos: coordinates defined as X and Y axis value (Note : this pIn will only be visible if the Use 2D Vector setting is checked and the Use Mouse Coordinates setting left unchecked.)
Window Relative: Check this parameter if you give coordinates in the render window coordinate system, or leave it uncheck if you give them in the entire screen coordinates (like the values returned by the GetMousePosition behavior). For fullscreen mode, this parameter makes no difference.

Object Picked: The first object in Z order, under the picking.
Intersection Point: exact 3D point coordinates of the intersection point (this point is given in world space coordinates).
Intersection Normal: coordinates of the normal vector on the picked object.
UV Coordinates: coordinates on the 'texel' picked (pixel on the texture).
Distance from The Viewpoint: distance of the exact 3D point from the viewpoint
Face Index: index, on the object, of the picked face
Sprite: picked sprite, if any.

Use 2D Vector: Uncheck to provide coordinates using seperate pIns for X and Y values.
Use Mouse Coordinates: Checked (by default) to use the mouse position to provide coordinates. (Note: Checking this setting hides all pIns)
Local Output: check this if you want Intersection Point and Normal expressed in the picked object referential.

转载于:https://www.cnblogs.com/brightdelight/archive/2007/10/06/915618.html

Virtools学习(七)—2D Picking相关推荐

  1. STL源码剖析学习七:stack和queue

    STL源码剖析学习七:stack和queue stack是一种先进后出的数据结构,只有一个出口. 允许新增.删除.获取最顶端的元素,没有任何办法可以存取其他元素,不允许有遍历行为. 缺省情况下用deq ...

  2. OpenCV与图像处理学习七——传统图像分割之阈值法(固定阈值、自适应阈值、大津阈值)

    OpenCV与图像处理学习七--传统图像分割之阈值法(固定阈值.自适应阈值.大津阈值) 一.固定阈值图像分割 1.1 直方图双峰法 1.2 OpenCV中的固定阈值分割 二.自动阈值图像分割 2.1 ...

  3. PyTorch框架学习七——自定义transforms方法

    PyTorch框架学习七--自定义transforms方法 一.自定义transforms注意要素 二.自定义transforms步骤 三.自定义transforms实例:椒盐噪声 虽然前面的笔记介绍 ...

  4. Docker学习七:使用docker搭建Hadoop集群

    本博客简单分享了如何在Docker上搭建Hadoop集群,我的电脑是Ubuntu20,听同学说wsl2有些命令不对,所以建议在虚拟机里按照Ubuntu或者直接安装双系统吧 Docker学习一:Dock ...

  5. (转)MyBatis框架的学习(七)——MyBatis逆向工程自动生成代码

    http://blog.csdn.net/yerenyuan_pku/article/details/71909325 什么是逆向工程 MyBatis的一个主要的特点就是需要程序员自己编写sql,那么 ...

  6. RTKLIB专题学习(七)---精密单点定位实现初识(三)

    RTKLIB专题学习(七)-精密单点定位实现初识(三) 上两篇我们介绍了RTKLIB中精密单点定位的大致流程,今天我们对照RTKLIB学习手册,来学习相应改正公式和误差源 1.在PPP模式中 RTKL ...

  7. 【数据库】ER图进行描述某系统之学习七

    文章目录 [数据库]ER图进行描述某系统之学习七 一.前提准备 二.要求 三.分析 四.ER图 [数据库]ER图进行描述某系统之学习七 一.前提准备 二.要求 画出相应的ER图,使得可以从该ER图推导 ...

  8. [Unity学习笔记]2D游戏中的触碰/OnMouseDown

    [Unity学习笔记]2D游戏中的触碰/OnMouseDown 这种情况多用于2D游戏的触屏 1.给2D游戏对象加上collider 2D,让其能够被检测到

  9. 实验七2D太阳系绘制

    实验七2D太阳系绘制 一.实验目的 1.掌握2D太阳系绘制方法. 2.掌握矩阵堆栈流程. 3.进一步掌握复合2D图形变换. 二.实验内容 1.已知太阳半径氏,地球半径月球半径Rm,每 个星球都会自转, ...

最新文章

  1. 通俗理解kaggle比赛大杀器xgboost + XGBOOST手算内容 转
  2. 手机验证码倒记时函数
  3. 基于图卷积(GCN)和规则卷积(CNN)的情绪识别
  4. linux怎么卸载yam,linux 基本命令 - osc_foipyam7的个人空间 - OSCHINA - 中文开源技术交流社区...
  5. jsf服务_使用JSF的面向服务的UI
  6. linux下tar包安装sudo命令,ubuntu12.04LTS安装gv-412-Linux-x86.tar.gz方法
  7. 有两个python怎么停用其中一_python3.X 复学(2)-----开始了就不要停止
  8. 南开大学计算机学院夏令营,2022保研夏令营:南开大学计算机学院云端夏令营通知...
  9. 免费破解版Xshell和Xftp
  10. 马哥linux作业,马哥linux0803作业内容
  11. js页面刷新或关闭时弹框
  12. SpringBoot图片上传报错:The field headImg exceeds its maximum permitted size of 1048576 bytes.
  13. 40行Python代码利用DOI下载英文论文(2022.3.7)
  14. 绚丽的魔兽世界,广袤的艾泽拉斯大陆
  15. CPU GPU 扫盲帖
  16. 武汉大学计算机学院樊浩南,今年高考光荣榜?谁能告之??谢谢!!
  17. 【学习笔记+习题集】字符相关(输入输出流,字典树,AC自动机,后缀自动机)(4598字)(更新至2022.12.28)
  18. c语言bon什么意思,法语bon是什么意思?
  19. 计算搭积木是否能拼接成一个整体
  20. EasyPlayerPro RTMP播放器助力远程娃娃机直播抓娃娃技术方案

热门文章

  1. SQLSERVER 2008 R2中的全文检索
  2. php 清除缓存的操作,PHP清除缓存的几种方法
  3. KVM中virtio之vring(八)
  4. leetcode算法题--搜索旋转排序数组
  5. python interactive 清空内存_Python 内存回收问题
  6. vc++ 将可执行文件链接到 DLL
  7. [译]学习IPython进行交互式计算和数据可视化(四)
  8. 真正的 Tornado 异步非阻塞
  9. [LeetCode][Java] 3Sum Closest
  10. URAL 7077 Little Zu Chongzhi's Triangles(14广州I)