| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository is not used anymore, as the physics has been fully integrated into the core engine and source
This adds several nodes to handle physics in the Polygonjs webgl engine.
This is currently using Ammo from https://github.com/giniedp/ammojs-typed.
See example scene:
Import the plugin:
yarn add @polygonjs/plugin-physics
And register the plugin in the function configurePolygonjs in the file PolyConfig.js so that the physics nodes can be accessible in both the editor and your exported scene:
import {polyPluginPhysics} from '@polygonjs/plugin-physics/dist/src/index';
export function configurePolygonjs(poly) {
poly.registerPlugin(polyPluginPhysics);
}| Back | FazBrowse Home | New Git URL |