【文件属性】:
文件名称:threejs-googly-eyes:ThreeJS的即时搜寻眼睛!
文件大小:2.44MB
文件格式:ZIP
更新时间:2021-04-01 16:07:40
JavaScript
ThreeJS Googly眼睛
ThreeJS的即时搜寻眼睛! 享受!
例子:
用法
GooglyEyes可以轻松创建并添加到现有模型中。 移动/旋转模型将导致在调用update方法时,食人魔的眼睛正确update 。
将其添加到您的项目中:
npm install @derschmale/threejs-googly-eyes
并将其添加到您的代码中!
// ... (whatever ThreeJS code)
import GooglyEyes from "@derschmale/threejs-googly-eyes";
// metric units are generally assumed
const eyes = new GooglyEyes(0.03, 0.05);
eyes.position.z = 0.1;
someModelThatNeedsGoogly
【文件预览】:
threejs-googly-eyes-main
----rollup.config.js(1004B)
----src()
--------main.ts(70B)
--------EyePhysics.ts(1KB)
--------GooglyEyes.ts(5KB)
--------EyeGeometry.ts(241B)
----thumb.png(385KB)
----example()
--------index.html(793B)
--------Suzanne_MetallicRoughness.png(840KB)
--------textures()
--------Suzanne.bin(577KB)
--------script.js(4KB)
--------Suzanne.gltf(4KB)
--------Suzanne_BaseColor.png(340KB)
--------style.css(778B)
--------vendor()
----tsconfig.json(463B)
----build()
--------three-googly-eyes.js(5KB)
--------types()
--------three-googly-eyes.min.js(2KB)
--------three-googly-eyes.module.js(4KB)
----README.md(861B)
----.gitignore(26B)
----_config.yml(25B)
----package-lock.json(21KB)
----package.json(1KB)