Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
6f30f486
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6f30f486
编写于
1月 25, 2013
作者:
O
OpenShift guest
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update Raycaster documentation
上级
65efc1c6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
58 addition
and
5 deletion
+58
-5
docs/api/core/Raycaster.html
docs/api/core/Raycaster.html
+58
-5
未找到文件。
docs/api/core/Raycaster.html
浏览文件 @
6f30f486
...
...
@@ -9,24 +9,77 @@
<body>
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<div
class=
"desc"
>
This class makes raycasting easier. Raycasting is used for picking and more.
</div>
<h2>
Constructor
</h2>
<h3>
[name]()
</h3>
<h3>
[name]( [page:Vector3 origin], [page:Vector3 direction], [page:Float near], [page:Float far] ) {
</h3>
<div>
[page:Vector3 origin] — The origin vector where the ray casts from.
<br
/>
[page:Vector3 direction] — The direction vector that gives direction to the ray.
<br
/>
[page:Float near] — All results returned are further away then near. Near can't be negative. Default value is 0.
<br
/>
[page:Float far] — All results returned are closer then far. Far can't be lower then near . Default value is Infinity.
</div>
<div>
This creates a new raycaster object.
<br
/>
</div>
<h2>
Properties
</h2>
<h3>
.[page:Vector3 todo]
</h3>
<h3>
.[page:Ray ray]
</h3>
<div>
The Ray used for the raycasting.
</div>
<h3>
.[page:float near]
</h3>
<div>
The near factor of the raycaster. This value indicates which objects can be discarded based on the distance.
<br
/>
This value shouldn't be negative and should be smaller then the far property.
</div>
<h3>
.[page:float far]
</h3>
<div>
The far factor of the raycaster. This value indicates which objects can be discarded based on the distance.
<br
/>
This value shouldn't be negative and should be smaller then the far property.
</div>
<h3>
.[page:float precision]
</h3>
<div>
The precision factor of the raycaster.
</div>
<h2>
Methods
</h2>
<h3>
.todo( [page:Vector3 todo] )
</h3>
<h3>
.set( [page:Vector3 origin], [page:Vector3 direction] )
</h3>
<div>
[page:Vector3 origin] — The origin vector where the ray casts from.
<br
/>
[page:Vector3 direction] — The direction vector that gives direction to the ray.
</div>
<div>
Updates the ray with a new origin and direction.
</div>
<h3>
.intersectObject( [page:Object3D object], [page:Boolean recursive] )
</h3>
<div>
[page:Object3D object] — The object to check for intersection with the ray.
<br
/>
[page:Boolean recursive] — If set, it also checks all descendants. Otherwise it only checks intersecton with the object.
</div>
<div>
checks all intersection between the ray and the object with or without the descendants.
</div>
<h3>
.intersectObjects( [page:Array objects], [page:Boolean recursive] )
</h3>
<div>
[page:Array objects] — The objects to check for intersection with the ray.
<br
/>
[page:Boolean recursive] — If set, it also checks all descendants of the objects. Otherwise it only checks intersecton with the objects.
</div>
<div>
todo — todo
<br
/>
checks all intersection between the ray and the objects with or without the descendants.
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录