1.1.257 • Published 2 years ago

@polygonjs/plugin-physics v1.1.257

Weekly downloads
38
License
MIT
Repository
github
Last release
2 years ago

Polygonjs Physics Plugin

This adds several nodes to handle physics in the Polygonjs webgl engine.

  • Sop/PhysicsSolver: computes the input geometries and attributes and solves the simulation at every frame
  • Sop/PhysicsRbdAttributes: creates attributes necessary for rigid body simulations
  • Sop/PhysicsForceAttributes: creates attributes to define forces

This is currently using Ammo from https://github.com/giniedp/ammojs-typed.

See example scene:

scene with physics

Install

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);
}
1.1.246-2

2 years ago

1.1.246-1

2 years ago

1.1.257

2 years ago

1.1.218-2

2 years ago

1.1.218

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago