enable3d / enable3d-website Goto Github PK
View Code? Open in Web Editor NEW🌐 Contains the website and all examples.
License: MIT License
🌐 Contains the website and all examples.
License: MIT License
Hello,
I have made simple demo scene of my project, using enable3d as extension for Phaser.
The problem is the fbx object 'ignore' a real canvas size.
When it tries to change the distance between chrome dev tools and canvas - the fbx object, after refreshing the page, changes its position as well as its scale (although the canvas has rigidly declared dimensions).
Screenshots:
https://enable3d.io/examples/camera-lerping-and-player-controls.html
I'm pretty sure it's because of the "?" on line 97:
update(time, delta) {
if (typeof this.player?.body === 'undefined') return
this.third.camera.position.lerp(
Describe the bug
When I installed [email protected] in NPM, I just used A simple line of code to determine if the code would work.
But it went horribly wrong with the warning
In this file path:'./src/demo.ts'
import { Project } from 'enable3d'; console.log(Project)
and webpack.config.js like this:
const path = require('path'); module.exports = { entry: { demo: './src/demo.ts' }, mode: 'production', module: { rules: [ { test: /\.tsx?$/, use: 'ts-loader', exclude: /node_modules/ } ] }, resolve: { extensions: ['.tsx', '.ts', '.js'] }, output: { filename: "[name].js", path: path.resolve(__dirname, 'dcp-lib'), library: 'x-x', [git-bug-project.zip](https://github.com/enable3d/enable3d-website/files/9280748/git-bug-project.zip) libraryTarget: 'umd', }, devServer: { contentBase: path.join(__dirname, ''), compress: true, port: 8899 } }
Have a question?
The whole project is very simple, you can download the attachments and run the project with npm run serve
after installing with npm i
.
https://github.com/enable3d/enable3d-website/files/9280773/git-bug-project.zip
Hi, I created the typescript project from here:https://github.com/enable3d/threejs-ammojs-webpack-example,
but I want to use the ‘First Person Shooter’ example to add to the project,
how can I inject Phaser's code so that the Scene has the input properties.
Let me use the following code:
my-project.zip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.