没有合适的资源?快使用搜索试试~ 我知道了~
camera-controls:三.js 的相机控件,类似于 THREE.OrbitControls 但支持平滑过渡和更多功能
共57个文件
html:19个
ts:19个
js:4个
需积分: 40 18 下载量 195 浏览量
2021-08-04
11:08:26
上传
评论
收藏 170KB ZIP 举报
温馨提示
相机控制 一个用于three.js 的相机控件,类似于THREE.OrbitControls,但支持平滑过渡和更多功能。 例子 相机移动 默认用户输入(可配置) 轨道旋转 鼠标左键拖动/触摸:单指移动 多莉 鼠标中键拖动,或鼠标滚轮/触摸:两指捏合或向外 卡车(平底锅) 鼠标右键拖动/触摸:两指移动或三指移动 第一个人 第三人称(使用meshwalk ) 相机抖动效果 随着持续时间和缓动旋转(使用tween.js ) 路径动画(使用tween.js ) 拖到 iframe 之外 用法 import * as THREE from 'three' ; import CameraControls from 'camera-controls' ; CameraControls . install ( { THREE : THREE } ) ; // snip ( init thre
资源推荐
资源详情
资源评论
收起资源包目录
camera-controls-dev.zip (57个子文件)
camera-controls-dev
.gitignore 79B
package.json 2KB
package-lock.json 61KB
src
CameraControls.ts 56KB
utils
notSupportedInOrthographicCamera.ts 405B
math-utils.ts 671B
quatInvertCompat.ts 492B
extractClientCoordFromEvent.ts 359B
EventDispatcher.ts 2KB
index.ts 82B
types.ts 3KB
constants.ts 95B
dist
types.d.ts 3KB
camera-controls.js 68KB
CameraControls.d.ts 6KB
camera-controls.module.js 67KB
EventDispatcher.d.ts 448B
utils
notSupportedInOrthographicCamera.d.ts 209B
extractClientCoordFromEvent.d.ts 183B
math-utils.d.ts 345B
quatInvertCompat.d.ts 118B
isTouchEvent.d.ts 62B
constants.d.ts 110B
camera-controls.min.js 46KB
index.d.ts 84B
LICENSE 1KB
tsconfig.json 545B
.github
ISSUE_TEMPLATE
bug_report.md 710B
feature_request.md 595B
FUNDING.yml 643B
workflows
npm.yml 417B
rollup.config.js 555B
examples
iframe-child.html 1KB
basic.html 4KB
combined-gestures.html 3KB
fit-and-padding.html 6KB
iframe.html 380B
config.html 6KB
orthographic.html 3KB
camera-up.html 3KB
ruler.png 12KB
rubber-duck.glb 364KB
keyboard.html 3KB
easing.html 3KB
focal-offset.html 3KB
collision.html 3KB
fit-to-bounding-sphere.html 3KB
boundary.html 4KB
cursor.html 3KB
effect-shake.html 5KB
style.css 329B
first-person.html 4KB
path-animation.html 3KB
fig1.svg 3KB
viewport.html 3KB
readme.md 23KB
.npmignore 11B
共 57 条
- 1
资源评论
Dilwanga
- 粉丝: 23
- 资源: 4682
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功