@zaisma/physics 0.0.0-stage → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +93 -0
- package/README.md +146 -2
- package/characters.js +189 -0
- package/data.js +85 -0
- package/declare.js +495 -0
- package/engine.js +48 -0
- package/index.d.ts +743 -0
- package/index.js +27 -0
- package/level-characters.js +139 -0
- package/package.json +54 -4
- package/piece.json +136 -0
- package/piece.json.js +137 -0
- package/rapier/LICENSE.txt +201 -0
- package/rapier/rapier.d.ts +903 -0
- package/rapier/rapier.js +12674 -0
- package/rapier/rapier.wasm +0 -0
- package/server.d.ts +34 -0
- package/server.js +17 -0
- package/simulation.js +1136 -0
- package/sync.js +1035 -0
- package/world.d.ts +4 -0
- package/world.js +5 -0
package/world.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// The types of world.js: what a game's shared declarations import, the same file in a game and in its game server's
|
|
2
|
+
// folder. They're index.d.ts's own, without the engine.
|
|
3
|
+
export { definePhysicsWorld, defineCharacterKind, stickVehicleControls, walkStep, walkingCharacters, wishOf } from "./index.js";
|
|
4
|
+
export type { WorldDeclaration, PhysicsWorld, BodyDeclaration, BodyKindDeclaration, ShapeDeclaration, JointDeclaration, VehicleDeclaration, WheelDeclaration, CharacterKind, CharacterKindDeclaration, CharacterStepContext, SteppedCharacter, PhysicsTuning, Point, Rotation, TurnDeg } from "./index.js";
|
package/world.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// What a game's shared declarations import: the one file of this piece that's at the same place in a game
|
|
2
|
+
// (pieces/@zaisma/physics/world.js) and in its game server's folder (zaisma-server/pieces/@zaisma/physics/world.js),
|
|
3
|
+
// so the file a game declares its world (and its own character kind) in is the same file on both sides.
|
|
4
|
+
export { definePhysicsWorld } from "./declare.js";
|
|
5
|
+
export { defineCharacterKind, stickVehicleControls, walkStep, walkingCharacters, wishOf } from "./characters.js";
|