loki-entity-collision-resolution

0.0.10 • Public • Published

loki-entity-collision-resolution

Entity collision resolution library for lokijs.

Usage

This one actually gets a bit of proto documentation.

The other library handles actual collisions. This library handles what happens in response to the two entities' collide events.

For example. Two entities, A and B, collide. Entity A has a plug with an associated property (a string) and a strength (a number). Entity B has a matching socket with the same property name, a threshold, and a callback. When the two collide, the threshold is checked against the strength. If the strength of the plug on A exceeds the threshold of the socket on entity B then the callback on Entity B is invoked.

Readme

Keywords

none

Package Sidebar

Install

npm i loki-entity-collision-resolution

Weekly Downloads

1

Version

0.0.10

License

MIT

Last publish

Collaborators

  • drhayes