loki-entity-collision-resolution

Entity collision resolution library for lokijs.

npm install loki-entity-collision-resolution
20 downloads in the last week
20 downloads in the last month

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.

npm loves you