日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Virtools学习(七)—2D Picking

發(fā)布時間:2025/7/25 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Virtools学习(七)—2D Picking 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

這個功能比較重要,游戲中的托拽經(jīng)常要用到,例如,棋類游戲中讓棋子走到鼠標指定的位置,還有做模擬城市的游戲中,玩家會將自己選擇的建筑物或者植物托拽到某個特定的位置。

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.

轉(zhuǎn)載于:https://www.cnblogs.com/brightdelight/archive/2007/10/06/915618.html

總結(jié)

以上是生活随笔為你收集整理的Virtools学习(七)—2D Picking的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。