@korial29/tiny-fps 0.104.0 → 0.104.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.
@@ -37,6 +37,13 @@ export declare const reach: (q: Pose, s: Solved, j: number, to: Vec3, pole: Vec3
37
37
  export declare const shrug: (q: Pose, s: Solved, j: number, at: Vec3) => void;
38
38
  /** Where a fist holds a handle, from the wrist: along the fingers, and toward the palm. */
39
39
  export declare const FIST: number[];
40
+ /**
41
+ * The left hand round the rail gun's capsule, 3.7 cm thick: its axis through the hollow of the
42
+ * hand, further from the palm than a handle's, the fingers less closed (the user, 2026-11-10: the
43
+ * fist closed beside it).
44
+ */
45
+ export declare const CAPSULE_HOLD: number[];
46
+ export declare const CAPSULE_CURL = 0.6;
40
47
  /**
41
48
  * The left fist on the katana's grip: 8 mm further along the fingers and 6 mm nearer the palm than
42
49
  * FIST, so the grip runs through its curled fingers (the user, 2026-11-09).
@@ -60,7 +67,9 @@ export declare const KATANA_TILT: number[];
60
67
  */
61
68
  export declare const wield: (q: Pose, solved: Solved, j: number, at: Vec3, g: Vec3, pole: Vec3, held?: Vec3, [reach, palm]?: number[], [S, C]?: number[],
62
69
  /** The forearm on `held`'s line, not the hand's: the wrist cocked by the hand's own tilt. */
63
- bent?: boolean) => void;
70
+ bent?: boolean,
71
+ /** The shoulder follows a hand out of reach. */
72
+ far?: boolean) => void;
64
73
  /**
65
74
  * The katana and both fists as one rigid piece, the wrists straight, so that a cut is the arms'
66
75
  * alone (the user, 2026-11-07): the right hand round the grip, the left BEHIND it, each turned a
@@ -100,7 +109,9 @@ export declare const phalanges: (curl: number, i: number) => [Vec3, Vec3, Vec3];
100
109
  * detail): fingerless from halfway along the middle phalanx, the bare tips in `bare` with a nail
101
110
  * each; a hard shell over the knuckles, a padded plate on the back, a strap round the wrist.
102
111
  */
103
- export declare const hand: (out: number[], end: Vec3, f: Vec3, u: Vec3, th: Vec3, curl: number, tint: number[], point?: number, push?: number, to?: Vec3, bare?: number[]) => void;
112
+ export declare const hand: (out: number[], end: Vec3, f: Vec3, u: Vec3, th: Vec3, curl: number, tint: number[], point?: number, push?: number, to?: Vec3, bare?: number[],
113
+ /** 0 to 1: the thumb out of the fist to CUP, up the side of what the palm carries. */
114
+ cup?: number) => void;
104
115
  /** On a wall run the rail gun is put away, unless its bolt is going out. */
105
116
  export declare const stowed: (p: PlayerState) => boolean;
106
117
  export declare const createBody: (world?: World) => Body;
@@ -44,9 +44,21 @@ export declare const railgun: (lod: number) => number[];
44
44
  export declare const insulators: (lod: number, heat?: number) => number[];
45
45
  /** The weapon a gun model is, from a player or a flag: 0 the gun, 2 the rail gun (or true), 3 the laser rifle. */
46
46
  export declare const kindOf: (p: Pick<PlayerState, "railed" | "rifled"> | boolean | number) => number;
47
- /** The laser rifle's muzzle, the lens at the end of its shroud, and the middle of its handguard, the keel under its body where the left hand holds it from under it: the middle of the fist. */
47
+ /** The laser rifle's muzzle, the lens at the end of its shroud, and the middle of its handguard, the block under its body that the left hand carries. */
48
48
  export declare const RIFLE_MUZZLE: Vec3;
49
49
  export declare const RIFLE_GRIP: Vec3;
50
+ /** The handguard's half width and half height, and how much it rises forward, as the body's underside does. */
51
+ export declare const GUARD: [number, number];
52
+ export declare const RIFLE_RISE = 0.096;
53
+ /**
54
+ * How the left hand carries the handguard (the user, 2026-11-10: the fist closed beside it): where
55
+ * the block's middle is from the wrist, along the fingers and toward the palm (FIST's, in body.ts),
56
+ * so that the block lies in the palm and the fingers stand up its right side; the fingers
57
+ * square across it, as [sin, cos] of their lean; and how closed they are, a cup, not a fist.
58
+ */
59
+ export declare const RIFLE_HOLD: number[];
60
+ export declare const RIFLE_TILT: number[];
61
+ export declare const RIFLE_CURL = 0.45;
50
62
  /** The red of the laser, which blooms. */
51
63
  export declare const LASER: number[];
52
64
  /**
@@ -158,7 +170,7 @@ export declare const arc: (t: number) => number[];
158
170
  * Where the left hand holds a rail gun whose grip is at `at` and whose axes are [right, up,
159
171
  * forward]: the middle of its front grip, and the way the grip runs from its foot up to the barrel,
160
172
  * which the thumb points along (see wield() in body.ts). For the laser rifle (`kind` 3): under its
161
- * handguard, the thumb along it, and the way the hand goes, across under it and up its right side.
173
+ * handguard, the thumb along it, and the way the hand goes, across under it to its right.
162
174
  */
163
175
  export declare const fore: (at: Vec3, [r, u, f]: Vec3[], kind?: boolean | number) => [Vec3, Vec3, Vec3?];
164
176
  /** fore() for the hand at `pos` turned by `q`, which holds the grip. */
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.104.0",
5
+ "version": "0.104.1",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"