@korial29/tiny-fps 0.225.3 → 0.225.4
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 +5 -5
- package/dist/types/client/hunter.d.ts +22 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import type { Vec3 } from './mesh';
|
|
|
2
2
|
import type { PlayerState } from '../shared/types';
|
|
3
3
|
import type { Out } from './verts';
|
|
4
4
|
import type { Pieces } from './store';
|
|
5
|
+
import type { Quat } from './rig';
|
|
5
6
|
export declare function hunter(lod: 0 | 1 | 2): Record<string, number[]>;
|
|
6
7
|
/** Model-space cut trail on the same scaled mount as the baked blades. */
|
|
7
8
|
export declare const hunterWristEnds: () => Vec3[];
|
|
@@ -75,8 +76,29 @@ export interface HunterPiece {
|
|
|
75
76
|
cannon: boolean;
|
|
76
77
|
/** The disc on his hip, left out while it is in his hand. */
|
|
77
78
|
disc: boolean;
|
|
79
|
+
/** A strip under the belt, from its hinge rather than the joint (stripSwing()). */
|
|
80
|
+
strip?: HunterStrip;
|
|
78
81
|
vertices: number[];
|
|
79
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* A strip under the belt, hung on a hinge at the middle of its top edge: its number, the hinge
|
|
85
|
+
* from the pelvis at rest, the hinge's axis (about which a positive turn swings the strip out of
|
|
86
|
+
* the body) and where its foot hangs from the hinge.
|
|
87
|
+
*/
|
|
88
|
+
export interface HunterStrip {
|
|
89
|
+
i: number;
|
|
90
|
+
at: Vec3;
|
|
91
|
+
axis: Vec3;
|
|
92
|
+
end: Vec3;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Where a strip under the belt hangs on a posed Hunter (the user, 2026-11-25: strips that follow
|
|
96
|
+
* the thighs): its hinge and its turn, the pelvis at `pelvis` turned by `q` and his joints at
|
|
97
|
+
* `joints` (hunterPose()). It hangs as it is modelled unless a thigh comes within STRIP_CLEAR of
|
|
98
|
+
* its line: then it swings out about its hinge, by the least turn that clears both thighs. One
|
|
99
|
+
* turn a strip, its vertices placed as a rigid piece's are: none is worked out here.
|
|
100
|
+
*/
|
|
101
|
+
export declare const stripSwing: (strip: HunterStrip, pelvis: Vec3, q: Quat, joints: Vec3[]) => [Vec3, Quat];
|
|
80
102
|
/**
|
|
81
103
|
* The triangles around a bending joint, blended between the parent bone `a` and the child `b`
|
|
82
104
|
* (`w`: each vertex's share of `b`) so the knee, ankle, hip and elbow do not open as they bend.
|
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.225.
|
|
5
|
+
"version": "0.225.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|