Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
42128239
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,发现更多精彩内容 >>
提交
42128239
编写于
12月 20, 2016
作者:
M
Mr.doob
提交者:
GitHub
12月 20, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #10392 from looeee/docs/Object3D/staticProperties
Added DefaultUp and DefaultMatrixAutoUpdate to Object3D docs
上级
309dd0b1
6be59a9a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
26 addition
and
4 deletion
+26
-4
docs/api/core/Object3D.html
docs/api/core/Object3D.html
+25
-2
docs/api/lights/DirectionalLight.html
docs/api/lights/DirectionalLight.html
+0
-1
docs/page.js
docs/page.js
+1
-1
未找到文件。
docs/api/core/Object3D.html
浏览文件 @
42128239
...
...
@@ -64,7 +64,7 @@
<h3>
[property:Boolean matrixAutoUpdate]
</h3>
<div>
When this is set, it calculates the matrix of position, (rotation or quaternion) and
scale every frame and also recalculates the matrixWorld property. Default is
*true*
.
scale every frame and also recalculates the matrixWorld property. Default is
[page:Object3D.DefaultMatrixAutoUpdate] (true)
.
</div>
<h3>
[property:Matrix4 matrixWorld]
</h3>
...
...
@@ -132,7 +132,10 @@
</div>
<h3>
[property:Vector3 up]
</h3>
<div>
Up direction. Default is [page:Vector3]( 0, 1, 0 ).
</div>
<div>
This is used by the [page:.lookAt lookAt] method, for example, to determine the orientation of the result.
<br
/>
Default is [page:Object3D.DefaultUp] - that is, ( 0, 1, 0 ).
</div>
<h3>
[property:object userData]
</h3>
<div>
...
...
@@ -152,7 +155,27 @@
<h2>
Static Properties
</h2>
<div>
Static properties and methods are defined per class rather than per instance of that class.
This means that changing [page:Object3D.DefaultUp] or [page:Object3D.DefaultMatrixAutoUpdate]
will change the values of [page:.up up] and [page:.matrixAutoUpdate matrixAutoUpdate] for
<em>
every
</em>
instance of Object3D (or derived classes) created after the change has
been made (already created Object3Ds will not be affected).
</div>
<h3>
[property:Vector3 DefaultUp]
</h3>
<div>
The default [page:.up up] direction for objects, also used as the default position for [page:DirectionalLight],
[page:HemisphereLight] and [page:Spotlight] (which creates lights shining from the top down).
<br
/>
Set to (0, 1, 0) by default.
</div>
<h3>
[property:Vector3 DefaultMatrixAutoUpdate]
</h3>
<div>
The default setting for [page.matrixAutoUpdate matrixAutoUpdate] for newly created Object3Ds.
<br
/>
</div>
<h2>
Methods
</h2>
...
...
docs/api/lights/DirectionalLight.html
浏览文件 @
42128239
...
...
@@ -54,7 +54,6 @@
<code>
// White directional light at half intensity shining from the top.
var directionalLight = new THREE.DirectionalLight( 0xffffff, 0.5 );
directionalLight.position.set( 0, 1, 0 );
scene.add( directionalLight );
</code>
...
...
docs/page.js
浏览文件 @
42128239
...
...
@@ -43,7 +43,7 @@ var onDocumentLoad = function ( event ) {
text
=
text
.
replace
(
/
\[
example:
([\w\_]
+
)\]
/gi
,
"
[example:$1 $1]
"
);
// [example:name] to [example:name title]
text
=
text
.
replace
(
/
\[
example:
([\w\_]
+
)
([\w\:\/\.\-\_
\s]
+
)\]
/gi
,
"
<a href=
\"
../examples/#$1
\"
target=
\"
_blank
\"
>$2</a>
"
);
// [example:name title]
document
.
body
.
innerHTML
=
text
;
// handle code snippets formatting
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录