Comments (7)
If you remove that, you get:
C:\dev\engine>npm run lint
> [email protected] lint
> eslint --ext .js,.mjs extras scripts src test utils rollup.config.mjs
C:\dev\engine\scripts\animation\tween.js
200:22 error 'TWEEN' is not defined no-undef
202:22 error 'TWEEN' is not defined no-undef
273:31 error 'TWEEN' is not defined no-undef
315:9 error 'TWEEN' is not defined no-undef
✖ 4 problems (4 errors, 0 warnings)
from engine.
I don't think that is a correct class? TWEEN
is the original Tween.js:
https://github.com/tweenjs/tween.js
While PlayCanvas is (or at least it should be) using own one, which is Tween
:
https://github.com/playcanvas/playcanvas-tween/
from engine.
engine/scripts/animation/tween.js
Line 273 in 44dda5a
That script is using the original Tween.js.
from engine.
Why does it use a third party library, when the engine has own tool that does the same?
from engine.
Because:
- The
playcanvas-tween
library is a separate repo and IMHO, it is 'bad' in that it hacks/modifies theEntity
andAppBase
APIs. - Tween.js is awesome! Why not use it? Why re-invent the wheel? So I added a nice, clean Tween.js wrapper script for people to use that doesn't hack engine internals.
from engine.
I have nothing against Tween.js, I also think it is awesome :) Maybe it is time to consider deprecating playcanvas-tween then?
from engine.
I think we should...
from engine.
Related Issues (20)
- Invalid base value of anim target
- Handle device lost on WebGPU
- Standalone engine extras import failed HOT 1
- Changing opacity of transparent material forces shader recompilation HOT 6
- WebXR direct hand input HOT 2
- Docs: update normals in mesh example
- Anim Blend Tree takes incorrect name HOT 1
- Some WebXR examples throw error when refreshed HOT 2
- Add support for the XR emulator HOT 2
- Mesh collider no longer scales in real time HOT 1
- Weighted Blended Order Independent Transparency HOT 1
- Anim Blend Tree accessor override
- Anim Blend Tree 1D weights issue
- Debug bundled ESM engine build fails to build with Vite HOT 2
- Source map shows incorrect scope HOT 5
- Copy-Paste folder HOT 1
- Examples - build step takes progressively longer each time
- Camera non-default viewport size ignores camera clear color HOT 1
- Compute shader enhancements
- Engine requires Node 18.0 to build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from engine.