@korial29/tiny-fps 0.190.0 → 0.191.1
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/dist/index.js +34 -34
- package/dist/types/client/spring.d.ts +5 -0
- package/package.json +1 -1
|
@@ -3,3 +3,8 @@
|
|
|
3
3
|
* stiffness (1 / s). Exact for any dt and never overshoots `to`. Returns the new value.
|
|
4
4
|
*/
|
|
5
5
|
export declare const damp: (s: number[], i: number, to: number, w: number, dt: number) => number;
|
|
6
|
+
/**
|
|
7
|
+
* One step of an underdamped spring (damping ratio `z` under 1): it passes `to` a little and comes
|
|
8
|
+
* back, the follow-through of a body that has weight. Exact for any dt.
|
|
9
|
+
*/
|
|
10
|
+
export declare const sway: (s: number[], i: number, to: number, w: number, dt: number, z?: number) => number;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@korial29/tiny-fps",
|
|
3
3
|
"description": "Tiny multiplayer first-person rooftop game for the browser: raw WebGL, zero runtime dependencies, WebSocket or same-browser multi-tab play.",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.191.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|