Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
zghywpc-vue
Commits
3733123e
Commit
3733123e
authored
Aug 15, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整相机控制器的最大距离
parent
a25a9d1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
Viewer.js
src/common/threeModules/Viewer.js
+1
-0
No files found.
src/common/threeModules/Viewer.js
View file @
3733123e
...
...
@@ -173,6 +173,7 @@ export default class Viewer {
this
.
controls
.
maxPolarAngle
=
Math
.
PI
/
2
;
// 限制最大俯仰角,防止看到地底
this
.
controls
.
minPolarAngle
=
0
;
// 限制最小俯仰角
this
.
controls
.
maxDistance
=
120
;
// 或者,如果你想要设置一个稍微严格一点的限制,比如防止相机直接指向地面
// 你可以将最小仰角设置为一个稍微大于0的值(比如Math.PI / 18,大约是10度)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment