Lnkit

Lnkit is a small "glue" library which ties together rapier & three.js with paperplane (tungstenite).

The idea is that rapier3d physics engine runs on the server and data is sent to clients using WebSockets. On the client side WebSocket messages are manifested into three.js objects.

Lnkit currently consists of two packages: server written in Rust & client written in Typescript.

Installation

To include the server package add the following to Cargo.toml dependencies section.

toml lnkit = "*"

Or just add with cargo add lnkit (cargo-edit)

To include the client package add the following to package.json dependencies section.

json "lnkit": "*"

Or just add with yarn add lnkit or npm install lnkit

Examples

Available examples are in the examples directory.

To run examples clone this repository and run the server with cargo run --example <example_name & client with yarn parcel examples/<example_name>/index.html