@korial29/tiny-fps 1.8.0 → 1.9.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/cast-art-DbwsToaQ.js +1 -0
- package/dist/index.js +8 -7
- package/dist/landfall-CSZGx2iA.js +21 -0
- package/dist/types/client/armor/clip.d.ts +22 -0
- package/dist/types/client/armor/cooking.d.ts +14 -0
- package/dist/types/client/armor/details.d.ts +65 -0
- package/dist/types/client/armor/fit.d.ts +8 -0
- package/dist/types/client/armor/regions.d.ts +304 -0
- package/dist/types/client/armor/scratches.d.ts +4 -0
- package/dist/types/client/armor/shell.d.ts +46 -0
- package/dist/types/client/armor/types.d.ts +37 -0
- package/dist/types/client/armor/wear.d.ts +22 -0
- package/dist/types/client/armor.d.ts +9 -393
- package/dist/types/client/body/constants.d.ts +35 -0
- package/dist/types/client/body/create.d.ts +3 -0
- package/dist/types/client/body/fingers.d.ts +112 -0
- package/dist/types/client/body/glove.d.ts +27 -0
- package/dist/types/client/body/hands.d.ts +28 -0
- package/dist/types/client/body/hunter.d.ts +26 -0
- package/dist/types/client/body/motion.d.ts +42 -0
- package/dist/types/client/body/reach.d.ts +65 -0
- package/dist/types/client/body/types.d.ts +39 -0
- package/dist/types/client/body/wield.d.ts +30 -0
- package/dist/types/client/body.d.ts +10 -207
- package/dist/types/client/cast-art.d.ts +2 -0
- package/dist/types/client/gait/constants.d.ts +34 -0
- package/dist/types/client/gait/create.d.ts +3 -0
- package/dist/types/client/gait/fists.d.ts +55 -0
- package/dist/types/client/gait/maths.d.ts +38 -0
- package/dist/types/client/gait/moves.d.ts +129 -0
- package/dist/types/client/gait/types.d.ts +59 -0
- package/dist/types/client/gait.d.ts +6 -146
- package/dist/types/client/gun/ammo.d.ts +21 -0
- package/dist/types/client/gun/display.d.ts +32 -0
- package/dist/types/client/gun/held.d.ts +75 -0
- package/dist/types/client/gun/kinds.d.ts +12 -0
- package/dist/types/client/gun/loft.d.ts +16 -0
- package/dist/types/client/gun/paint.d.ts +30 -0
- package/dist/types/client/gun/railgun.d.ts +34 -0
- package/dist/types/client/gun/reload.d.ts +112 -0
- package/dist/types/client/gun/rifle.d.ts +54 -0
- package/dist/types/client/gun/sidearm.d.ts +32 -0
- package/dist/types/client/gun.d.ts +10 -308
- package/dist/types/client/hulk/cabin.d.ts +36 -0
- package/dist/types/client/hulk/common.d.ts +55 -0
- package/dist/types/client/hulk/debris.d.ts +16 -0
- package/dist/types/client/hulk/hull.d.ts +81 -0
- package/dist/types/client/hulk/inside.d.ts +5 -0
- package/dist/types/client/hulk/parts.d.ts +16 -0
- package/dist/types/client/hulk/types.d.ts +7 -0
- package/dist/types/client/hulk/wings.d.ts +4 -0
- package/dist/types/client/hulk.d.ts +8 -18
- package/dist/types/client/hunter/animation.d.ts +113 -0
- package/dist/types/client/hunter/constants.d.ts +53 -0
- package/dist/types/client/hunter/disc.d.ts +33 -0
- package/dist/types/client/hunter/harpoon.d.ts +68 -0
- package/dist/types/client/hunter/marine.d.ts +14 -0
- package/dist/types/client/hunter/model.d.ts +4 -0
- package/dist/types/client/hunter/rest.d.ts +7 -0
- package/dist/types/client/hunter.d.ts +7 -164
- package/dist/types/client/render/camera.d.ts +58 -0
- package/dist/types/client/render/constants.d.ts +63 -0
- package/dist/types/client/render/scene.d.ts +58 -0
- package/dist/types/client/render/shader.d.ts +69 -0
- package/dist/types/client/render/shots.d.ts +61 -0
- package/dist/types/client/render/types.d.ts +74 -0
- package/dist/types/client/render.d.ts +9 -277
- package/dist/types/client/sfx/air.d.ts +46 -0
- package/dist/types/client/sfx/anthem.d.ts +27 -0
- package/dist/types/client/sfx/layers.d.ts +6 -0
- package/dist/types/client/sfx/music.d.ts +96 -0
- package/dist/types/client/sfx/render.d.ts +10 -0
- package/dist/types/client/sfx/sounds.d.ts +180 -0
- package/dist/types/client/sfx/synth.d.ts +24 -0
- package/dist/types/client/sfx/voices.d.ts +59 -0
- package/dist/types/client/sfx.d.ts +8 -325
- package/dist/types/client/skin/head.d.ts +120 -0
- package/dist/types/client/skin/lofts.d.ts +145 -0
- package/dist/types/client/skin/pose.d.ts +102 -0
- package/dist/types/client/skin/shape.d.ts +2 -0
- package/dist/types/client/skin.d.ts +4 -179
- package/dist/types/client/soldier/animate.d.ts +12 -0
- package/dist/types/client/soldier/carry.d.ts +28 -0
- package/dist/types/client/soldier/common.d.ts +8 -0
- package/dist/types/client/soldier/draw.d.ts +12 -0
- package/dist/types/client/soldier/grasp.d.ts +28 -0
- package/dist/types/client/soldier/hunter.d.ts +38 -0
- package/dist/types/client/soldier/runner.d.ts +58 -0
- package/dist/types/client/soldier/stance.d.ts +20 -0
- package/dist/types/client/soldier/types.d.ts +107 -0
- package/dist/types/client/soldier.d.ts +9 -236
- package/dist/types/client/xeno/back.d.ts +113 -0
- package/dist/types/client/xeno/body.d.ts +63 -0
- package/dist/types/client/xeno/common.d.ts +28 -0
- package/dist/types/client/xeno/head.d.ts +109 -0
- package/dist/types/client/xeno/limbs.d.ts +62 -0
- package/dist/types/client/xeno/mouth.d.ts +23 -0
- package/dist/types/client/xeno/parts.d.ts +40 -0
- package/dist/types/client/xeno/tail.d.ts +107 -0
- package/dist/types/client/xeno.d.ts +8 -246
- package/package.json +1 -1
- package/dist/landfall-CXJnap8w.js +0 -21
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { V, Mat } from './types';
|
|
2
|
+
/** A smooth sheet through a grid of points, its normals from the grid: `m` each square's material, or none; `k` a point's light; `inv` turns it over. */
|
|
3
|
+
export declare const sheet: (g: V[][], m: (i: number, j: number) => Mat | undefined, k?: (p: V) => number, inv?: boolean) => void;
|
|
4
|
+
/** smooth()'s vertices in a material, each lit by `k` of where it is. */
|
|
5
|
+
export declare const coat: (v: number[], m: Mat, k?: (p: V) => number) => number[];
|
|
6
|
+
/** The heights over the axis the loft's rows run at, up a flank; then the edge of the back, the edge of a hole in it and its middle: half width, height. */
|
|
7
|
+
export declare const ROWS: number[];
|
|
8
|
+
export declare const BACK: number[][];
|
|
9
|
+
export declare const HALF: number;
|
|
10
|
+
/** The loft's squares round the hull: twice a flank's. */
|
|
11
|
+
export declare const ROUND: number;
|
|
12
|
+
/** The square `q` round the hull, counted up its own flank. */
|
|
13
|
+
export declare const up: (q: number) => number;
|
|
14
|
+
/** The height a flank's point `j` is at. */
|
|
15
|
+
export declare const high: (j: number) => number;
|
|
16
|
+
/** The nose, x: where its canopy's rear arch stands, where the windscreen's foot is, its sensor's tip; and how far the tip droops. */
|
|
17
|
+
export declare const ARCH: number, FOOT: number, TIP: number, DROOP: number;
|
|
18
|
+
/** The canopy's sill over the axis: the upper deck's line. */
|
|
19
|
+
export declare const SILL: number;
|
|
20
|
+
/**
|
|
21
|
+
* A section's form at x: its width's share (the map's `cut`, each step eased over 2 m), how far
|
|
22
|
+
* the nose has turned from the round section to the chined one, its scale and how far its axis
|
|
23
|
+
* has sunk (the nose tapers straight from the windscreen to its tip).
|
|
24
|
+
*/
|
|
25
|
+
export declare const form: (n: number, x: number) => number[];
|
|
26
|
+
/** The nose's chined section after Tranquility's ship: a flat top, a slope to the shoulder, another to the chine at the belt, a V keel. */
|
|
27
|
+
export declare const chine: (h: number) => number;
|
|
28
|
+
/** The drawn hull's half width at x and a height over the axis. */
|
|
29
|
+
export declare const wide: (n: number, x: number, h: number) => number;
|
|
30
|
+
/** A point of section `n` at x: `w` from the line on the side `sg`, at the height `h` over the axis as the round section counts it. */
|
|
31
|
+
export declare const spot: (n: number, x: number, w: number, h: number, sg: number) => V;
|
|
32
|
+
/** The hull's skin at x and a height, on a flank. */
|
|
33
|
+
export declare const shell: (n: number, x: number, h: number, sg: number) => V;
|
|
34
|
+
/** The loft's ring at the station x: up red's flank, across the back, down blue's. The nose's lines lean aft over the sill, so the windscreen's edge is one of them. */
|
|
35
|
+
export declare const ring: (n: number, x: number) => V[];
|
|
36
|
+
/** The stations a section is lofted at: its ends, every edge of a hole, the eased steps of its width, and no two over 2 m apart. */
|
|
37
|
+
export declare const stations: (n: number, x0: number, x1: number) => number[];
|
|
38
|
+
/** The nose's stations past the arch: narrow ones are the canopy's frame. */
|
|
39
|
+
export declare const AHEAD: number[];
|
|
40
|
+
/**
|
|
41
|
+
* The canopy's panes the crash broke, past the wall in the trees where nobody reaches: x0, x1
|
|
42
|
+
* (stations of AHEAD), the heights over the axis (rows of ROWS) and the flank. The flight deck
|
|
43
|
+
* shows through them.
|
|
44
|
+
*/
|
|
45
|
+
export declare const SHATTER: number[][];
|
|
46
|
+
export declare const shattered: (xa: number, xb: number, ha: number, hb: number, sg: number) => boolean;
|
|
47
|
+
/** The floors' lines of a section, from its floor up to under its back. */
|
|
48
|
+
export declare const lines: (n: number) => number[];
|
|
49
|
+
/** The inner face of the skin at x on the line `i` of lines(): the inner lower corner of the map's row there, plumb from each floor up to the belt. */
|
|
50
|
+
export declare const inner: (n: number, x: number, i: number) => number;
|
|
51
|
+
export declare const lining: (n: number, x: number, i: number, sg: number) => V;
|
|
52
|
+
/** Whether the map leaves the skin open between two heights of a flank, from one station to the next. */
|
|
53
|
+
export declare const open: (n: number, xa: number, xb: number, ha: number, hb: number) => boolean;
|
|
54
|
+
/** Whether the back is holed there. */
|
|
55
|
+
export declare const holed: (n: number, xa: number, xb: number) => boolean;
|
|
56
|
+
/** The broken ends of a section: the tail's east, both of the middle, the nose's west. */
|
|
57
|
+
export declare const ends: (n: number) => number[][];
|
|
58
|
+
/**
|
|
59
|
+
* How much of its paint a point of section n's skin has left: burnt black at a broken end and
|
|
60
|
+
* round a tear or a hole, stained along the belly, clean elsewhere.
|
|
61
|
+
*/
|
|
62
|
+
export declare const paint: (n: number) => (p: V) => number;
|
|
63
|
+
/** The seven segments of a figure in a cell 1 by 2 (x0, y0, x1, y1), and the hull number's figures as bits of them. */
|
|
64
|
+
export declare const SEG: number[][];
|
|
65
|
+
export declare const NUMBER: number[];
|
|
66
|
+
/** An engine bell, its throat at the origin, 1.8 m long and 1.7 m at the lip, dark inside. */
|
|
67
|
+
export declare const BELL: number[];
|
|
68
|
+
/** A fin's outline, chord by height from its root's trailing end; and the one that snapped half way up. */
|
|
69
|
+
export declare const FIN: number[][];
|
|
70
|
+
export declare const SNAPPED: number[][];
|
|
71
|
+
/** Torn metal round an opening of the skin: teeth on each edge of the line `l`, reaching `d` into it. */
|
|
72
|
+
export declare const ragged: (l: V[], d: V, c: V) => void;
|
|
73
|
+
/** A section's outer skin: one loft, holed where the map is; its torn ends, the edges of its holes in the skin's thickness. */
|
|
74
|
+
/** `only`: the canopy's glass alone instead of the skin. */
|
|
75
|
+
export declare const skin: (n: number, only?: "glass") => void;
|
|
76
|
+
/** The tail's stern, its bell, the stubs of its two engines' pylons, the fins on its shoulders and the number on its flanks. */
|
|
77
|
+
export declare const tail: () => void;
|
|
78
|
+
/** The nose's blunt tip and its probe. */
|
|
79
|
+
export declare const tip: () => void;
|
|
80
|
+
/** The fairings along the flanks, whose tops are ledges. */
|
|
81
|
+
export declare const fairings: () => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const UP: number[];
|
|
2
|
+
/** A level rectangle. */
|
|
3
|
+
export declare const flat: (xa: number, xb: number, y: number, za: number, zb: number) => number[][];
|
|
4
|
+
/** What one sees from inside a section: the skin's lining with its ribs, the decks with the twisted edges of their holes, lamps and cables under them. */
|
|
5
|
+
export declare const inside: (n: number) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WorldDef } from '../../shared/world';
|
|
2
|
+
/**
|
|
3
|
+
* The wreck by part, each its vertices in the renderer's format: the hull's skin and fairings,
|
|
4
|
+
* the tail's and the nose's ends, what is inside the hull, the two wings, the debris (the engines, the rails), the camps. Read from the map at the call.
|
|
5
|
+
*/
|
|
6
|
+
export declare const parts: (def: WorldDef) => {
|
|
7
|
+
cabin: number[];
|
|
8
|
+
hull: number[];
|
|
9
|
+
ends: number[];
|
|
10
|
+
inside: number[];
|
|
11
|
+
wings: number[];
|
|
12
|
+
debris: number[];
|
|
13
|
+
camps: number[];
|
|
14
|
+
};
|
|
15
|
+
/** Its vertices, in the renderer's format. */
|
|
16
|
+
export declare const hulk: (def: WorldDef) => number[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** The aerofoil along the chord, from the trailing edge to the leading one: the chord's share, and how much of the wing's thickness is under the top there. Both edges are sharp. */
|
|
2
|
+
export declare const FOIL: number[][];
|
|
3
|
+
/** A wing (red's with s = 1): three thin slabs, each a plane through the tops of its rows of the map, torn at the breaks. */
|
|
4
|
+
export declare const wing: (s: number) => void;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
cabin: number[];
|
|
10
|
-
hull: number[];
|
|
11
|
-
ends: number[];
|
|
12
|
-
inside: number[];
|
|
13
|
-
wings: number[];
|
|
14
|
-
debris: number[];
|
|
15
|
-
camps: number[];
|
|
16
|
-
};
|
|
17
|
-
/** Its vertices, in the renderer's format. */
|
|
18
|
-
export declare const hulk: (def: WorldDef) => number[];
|
|
1
|
+
export * from './hulk/types';
|
|
2
|
+
export * from './hulk/common';
|
|
3
|
+
export * from './hulk/hull';
|
|
4
|
+
export * from './hulk/inside';
|
|
5
|
+
export * from './hulk/cabin';
|
|
6
|
+
export * from './hulk/wings';
|
|
7
|
+
export * from './hulk/debris';
|
|
8
|
+
export * from './hulk/parts';
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { Vec3 } from '../mesh';
|
|
2
|
+
import type { PlayerState } from '../../shared/types';
|
|
3
|
+
import type { Out } from '../verts';
|
|
4
|
+
import type { Quat } from '../rig';
|
|
5
|
+
/** The shoulder cannon's fold `k`, moved toward out (`out`) or stowed by `dt` seconds. */
|
|
6
|
+
export declare const unfold: (k: number, out: boolean, dt: number) => number;
|
|
7
|
+
/**
|
|
8
|
+
* The Hunter as his arms are posed: with the shoulder cannon in use his hands hold nothing, so he
|
|
9
|
+
* is drawn as with no weapon in hand (not the rail gun's hold, nor the harpoon's).
|
|
10
|
+
*/
|
|
11
|
+
export declare const handsFree: <P extends Pick<PlayerState, "railed" | "ammo" | "zapping">>(p: P) => P;
|
|
12
|
+
/** How far along its swing a cannon folded out by `k` is: a smooth start and stop. */
|
|
13
|
+
export declare const folded: (k: number) => number;
|
|
14
|
+
/** Where each bone of HUNTER_REST ends: its first child (the spine, the neck), or a stub past a leaf. */
|
|
15
|
+
export declare const boneEnd: (j: number) => Vec3;
|
|
16
|
+
export declare const toBone: (p: Vec3, j: number) => number;
|
|
17
|
+
export declare const LEGS: ((16 | 14 | 15 | 13)[] | (20 | 18 | 19 | 17)[])[];
|
|
18
|
+
export declare const HEAD_PARTS: RegExp;
|
|
19
|
+
export declare const TRUNK_PARTS: Set<string>;
|
|
20
|
+
export declare const ALL: number[];
|
|
21
|
+
export declare const ARMS: number[];
|
|
22
|
+
export declare const TRUNK: number[];
|
|
23
|
+
/** The joints a part's triangles may follow (the nearest bone wins), by the part's name. */
|
|
24
|
+
export declare const followed: (name: string, [x, y]: Vec3) => number[];
|
|
25
|
+
/** A rigid Hunter piece: the vertices that follow `joint`, in that joint's rest frame. */
|
|
26
|
+
export interface HunterPiece {
|
|
27
|
+
joint: number;
|
|
28
|
+
/** Too fine for a shadow (the temple optics and the rangefinder). */
|
|
29
|
+
thin: boolean;
|
|
30
|
+
/** The harpoon on his back, left out while it is in his hand. */
|
|
31
|
+
harpoon: boolean;
|
|
32
|
+
/** The shoulder cannon, from its hinge (CANNON_HINGE) rather than the joint: it folds about it. */
|
|
33
|
+
cannon: boolean;
|
|
34
|
+
/** The disc on his hip, left out while it is in his hand. */
|
|
35
|
+
disc: boolean;
|
|
36
|
+
/** A strip under the belt, from its hinge rather than the joint (stripSwing()). */
|
|
37
|
+
strip?: HunterStrip;
|
|
38
|
+
vertices: number[];
|
|
39
|
+
}
|
|
40
|
+
export declare const add: (a: Vec3, b: Vec3) => Vec3;
|
|
41
|
+
/**
|
|
42
|
+
* A strip under the belt, hung on a hinge at the middle of its top edge: its number, the hinge
|
|
43
|
+
* from the pelvis at rest, the hinge's axis (about which a positive turn swings the strip out of
|
|
44
|
+
* the body) and where its foot hangs from the hinge.
|
|
45
|
+
*/
|
|
46
|
+
export interface HunterStrip {
|
|
47
|
+
i: number;
|
|
48
|
+
at: Vec3;
|
|
49
|
+
axis: Vec3;
|
|
50
|
+
end: Vec3;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The hinge of the strip `i` whose vertices are `v`, in model space: over the strip's middle, at
|
|
54
|
+
* its top, the strip's line straight down from it to its foot.
|
|
55
|
+
*/
|
|
56
|
+
export declare const hingeOf: (i: number, v: number[]) => HunterStrip;
|
|
57
|
+
/** How far a strip's line keeps from a thigh's bone, metres, and the step and the most it swings out, radians. */
|
|
58
|
+
export declare const STRIP_CLEAR: number, STRIP_STEP: number, STRIP_MOST: number;
|
|
59
|
+
/**
|
|
60
|
+
* Where a strip under the belt hangs on a posed Hunter (the user, 2026-11-25: strips that follow
|
|
61
|
+
* the thighs): its hinge and its turn, the pelvis at `pelvis` turned by `q` and his joints at
|
|
62
|
+
* `joints` (hunterPose()). It hangs as it is modelled unless a thigh comes within STRIP_CLEAR of
|
|
63
|
+
* its line: then it swings out about its hinge, by the least turn that clears both thighs. One
|
|
64
|
+
* turn a strip, its vertices placed as a rigid piece's are: none is worked out here.
|
|
65
|
+
*/
|
|
66
|
+
export declare const stripSwing: (strip: HunterStrip, pelvis: Vec3, q: Quat, joints: Vec3[]) => [Vec3, Quat];
|
|
67
|
+
/**
|
|
68
|
+
* The triangles around a bending joint, blended between the parent bone `a` and the child `b`
|
|
69
|
+
* (`w`: each vertex's share of `b`) so the knee, ankle, hip and elbow do not open as they bend.
|
|
70
|
+
* Vertices in model space at rest.
|
|
71
|
+
*/
|
|
72
|
+
export interface HunterBand {
|
|
73
|
+
a: number;
|
|
74
|
+
b: number;
|
|
75
|
+
vertices: Float32Array;
|
|
76
|
+
w: Float32Array;
|
|
77
|
+
}
|
|
78
|
+
/** The Hunter's rigid pieces and, near, his blended joint bands. */
|
|
79
|
+
export interface HunterRig {
|
|
80
|
+
pieces: HunterPiece[];
|
|
81
|
+
bands: HunterBand[];
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The bending joints: parent, child, whether the band runs along the child's bone (the hip,
|
|
85
|
+
* whose parent bone points up the spine), the band's centre past the joint along that bone and
|
|
86
|
+
* its half width, and for the shoulder the height under which the sleeve (out of the trunk) is wholly the arm's. The ankle's centre is up the shin, so the whole boot stays on the foot.
|
|
87
|
+
*/
|
|
88
|
+
export type Bend = [number, number, boolean, number, number, number?];
|
|
89
|
+
export declare const BENDS: Bend[];
|
|
90
|
+
/** The child's share of a vertex at `p` across the bend `k` of BENDS. */
|
|
91
|
+
export declare const shareOf: (p: Vec3, k: number) => number;
|
|
92
|
+
/** Whether a part's skin bends at its joints: the anatomy and the soft leg kit, not the knee cap. */
|
|
93
|
+
export declare const BENDY: RegExp;
|
|
94
|
+
export declare const rigs: Partial<Record<0 | 1 | 2, HunterRig>>;
|
|
95
|
+
/**
|
|
96
|
+
* The Hunter cut into rigid pieces, one per joint (and shadow flag, and the stowed harpoon), so the runner's animated
|
|
97
|
+
* skeleton can carry him: each triangle goes to the nearest bone its part may follow. Above the
|
|
98
|
+
* far level, the triangles across a bend go to a blended band instead (BENDS).
|
|
99
|
+
* `skip` leaves out parts (the far level's dreadlocks and grille).
|
|
100
|
+
*/
|
|
101
|
+
export declare const hunterRig: (lod: 0 | 1 | 2, skip?: (name: string) => boolean) => HunterRig;
|
|
102
|
+
/**
|
|
103
|
+
* Where the Hunter's joints stand in the posed runner `pos`/`rot` (solve()): his own bones
|
|
104
|
+
* (HUNTER_REST) turned as the runner's, from a pelvis that moves as the runner's scaled to his
|
|
105
|
+
* stature. `at` is the runner's feet and `yaw` his heading.
|
|
106
|
+
*/
|
|
107
|
+
export declare const hunterPose: (pos: Vec3[], rot: [number, number, number, number][], at: Vec3, yaw: number, out?: Vec3[]) => Vec3[];
|
|
108
|
+
export declare const HUNTER_BIND: Vec3;
|
|
109
|
+
/**
|
|
110
|
+
* Draws a blended band (HunterBand) on the Hunter's posed joints (hunterPose()) and the runner's
|
|
111
|
+
* rotations: each vertex placed by both bones and mixed by its share, its normal likewise.
|
|
112
|
+
*/
|
|
113
|
+
export declare const blendHunter: (out: Out, band: HunterBand, joints: Vec3[], rot: [number, number, number, number][]) => void;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Vec3 } from '../mesh';
|
|
2
|
+
/** The parts' name for the strips and the tassets under the belt, before each one's number: the strips 0 to 15, the tassets after them. */
|
|
3
|
+
export declare const STRIP = "Belt strip ";
|
|
4
|
+
export declare const hide: Vec3;
|
|
5
|
+
export declare const leather: Vec3;
|
|
6
|
+
/** His hide: its olive, the green beige of the pecs and the abs, and its dark green spots. */
|
|
7
|
+
export declare const HIDE: Vec3;
|
|
8
|
+
export declare const HIDE_LIGHT: Vec3;
|
|
9
|
+
export declare const HIDE_SPOT: Vec3;
|
|
10
|
+
export declare const graphite: Vec3;
|
|
11
|
+
export declare const silver: Vec3;
|
|
12
|
+
export declare const bronze: Vec3;
|
|
13
|
+
export declare const light: Vec3;
|
|
14
|
+
export declare const stature = 1.2;
|
|
15
|
+
/** The helmet's width against its first build (the user, 2026-11-24: narrower). */
|
|
16
|
+
export declare const HELM_WIDTH = 0.88;
|
|
17
|
+
/** How far the Hunter's right fingers close (hand()'s curl): a fist, the claw's housing on its back. */
|
|
18
|
+
export declare const HUNTER_FIST = 0.9;
|
|
19
|
+
/** The wrist blades and their housing stand off the back of the hand and sit up the forearm (the user, 2026-11-24: they cut into the hand), in the runner's metres. */
|
|
20
|
+
export declare const WRIST_LIFT = 0.022;
|
|
21
|
+
export declare const WRIST_UP = 0.02;
|
|
22
|
+
/** Where the sleeves' net ends on the arm: its share from the shoulder to the wrist. */
|
|
23
|
+
export declare const NET_SLEEVE = 0.55;
|
|
24
|
+
/** The armpit's cut (the user, 2026-11-24): how far the flank draws in under it, and the width of the upper arm's inside. */
|
|
25
|
+
export declare const PIT = 0.11;
|
|
26
|
+
export declare const PIT_ARM = 0.85;
|
|
27
|
+
/** The hide's round spots to a square metre of its most spotted skin. */
|
|
28
|
+
export declare const SPOTS = 430;
|
|
29
|
+
/** How much thinner the chest is from the side than the runner's (the user, 2026-11-24: too thick in profile). */
|
|
30
|
+
export declare const CHEST_THIN = 0.1;
|
|
31
|
+
/** What the finished model is scaled by from the sculpt, off the head (hunter()'s last pass). */
|
|
32
|
+
export declare const sized: ([x, y, z]: Vec3) => Vec3;
|
|
33
|
+
/** The top of the shoulder cannon's post, sculpted (CANNON_HINGE in the finished model). */
|
|
34
|
+
export declare const HINGE: Vec3;
|
|
35
|
+
/** The foot of the cannon's post, sculpted (CANNON_POST in the finished model). */
|
|
36
|
+
export declare const POST: Vec3;
|
|
37
|
+
/** The joint of the cannon's arm, sculpted (CANNON_ELBOW in the finished model). */
|
|
38
|
+
export declare const ELBOW: Vec3;
|
|
39
|
+
/**
|
|
40
|
+
* The top of the shoulder cannon's post, in the rest model: the hinge it folds about. The model
|
|
41
|
+
* draws it deployed, along the look; stowed it lies back along the top of the shoulder.
|
|
42
|
+
*/
|
|
43
|
+
export declare const CANNON_HINGE: Vec3;
|
|
44
|
+
/** The foot of the cannon's post, on its saddle on the left shoulder. */
|
|
45
|
+
export declare const CANNON_POST: Vec3;
|
|
46
|
+
/** The joint of the cannon's arm, between its foot and its hinge. */
|
|
47
|
+
export declare const CANNON_ELBOW: Vec3;
|
|
48
|
+
/** Radians the stowed cannon is turned about its hinge's right axis from the deployed one: muzzle back. */
|
|
49
|
+
export declare const CANNON_FOLD = 2.9;
|
|
50
|
+
/** The cannon's muzzle, from its hinge, deployed (the stepped muzzle's face). */
|
|
51
|
+
export declare const CANNON_MUZZLE: Vec3;
|
|
52
|
+
/** Seconds the cannon takes to fold out, or back. */
|
|
53
|
+
export declare const CANNON_SWING = 0.35;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Vec3 } from '../mesh';
|
|
2
|
+
import type { Out } from '../verts';
|
|
3
|
+
/** The thrown disc and the disc in hand, times the hip's (the user, 2026-11-23: bigger). */
|
|
4
|
+
export declare const DISC_SCALE = 1.5;
|
|
5
|
+
/** The throwing disc in its own frame, per level of detail: discVertices(). */
|
|
6
|
+
export declare const cross: (u: Vec3, v: Vec3) => Vec3;
|
|
7
|
+
export declare const discBuilt: Partial<Record<0 | 1 | 2, number[]>>;
|
|
8
|
+
/**
|
|
9
|
+
* The hip's throwing disc (the model's 'Flying disc' without its belt clip) in its own frame: the
|
|
10
|
+
* hub at the origin, the disc in the x-y plane and its face along +z, DISC_SCALE times as big. The thrown disc and the disc
|
|
11
|
+
* in hand are drawn with it (the user, 2026-11-23: the armour's disc).
|
|
12
|
+
*/
|
|
13
|
+
export declare const discVertices: (lod: 0 | 1 | 2) => number[];
|
|
14
|
+
/**
|
|
15
|
+
* The disc's hub from the hand's grip (gun.ts grip()), metres: forward along the fingers, and down
|
|
16
|
+
* under the palm (against gun.ts axes()' right, the back of the hand).
|
|
17
|
+
*/
|
|
18
|
+
export declare const DISC_HOLD: readonly [number, number];
|
|
19
|
+
/** The own hand holding the disc, moved from the gun's place in camera space (right, up, ahead), metres. */
|
|
20
|
+
export declare const DISC_RAISE: Vec3;
|
|
21
|
+
/** The own hand holding the disc: how far its fingers lean ahead of straight up (a slope). */
|
|
22
|
+
export declare const DISC_TILT = 2;
|
|
23
|
+
/** The fingers on the disc fanned out this many times an open hand's (the user, 2026-11-23). */
|
|
24
|
+
export declare const DISC_SPREAD = 5.5;
|
|
25
|
+
/** How far the fingers bend over the disc's edge in all, radians, over their three joints (the user, 2026-11-23). */
|
|
26
|
+
export declare const DISC_HOOK = 1.4;
|
|
27
|
+
/** How far the fingers close over the disc (hand()'s curl): little, long over its hub (the user, 2026-11-23). */
|
|
28
|
+
export declare const DISC_CURL = 0.05;
|
|
29
|
+
/**
|
|
30
|
+
* The armour's disc in a hand (the user, 2026-11-23: the disc in hand is the one on his hip):
|
|
31
|
+
* centred `at`, its plane along `x` and `y` and its face along `n`, all unit.
|
|
32
|
+
*/
|
|
33
|
+
export declare const drawDisc: (out: Out, at: Vec3, x: Vec3, y: Vec3, n: Vec3, lod?: 0 | 1 | 2) => void;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { Vec3 } from '../mesh';
|
|
2
|
+
import type { Out } from '../verts';
|
|
3
|
+
import type { Pieces } from '../store';
|
|
4
|
+
import type { Quat } from '../rig';
|
|
5
|
+
/** The Hunter's foldable, long-bolt rifle in right-hand grip space (muzzle points along -z). */
|
|
6
|
+
export declare const harpoons: {
|
|
7
|
+
body: number[];
|
|
8
|
+
slide: number[];
|
|
9
|
+
stock: number[];
|
|
10
|
+
bolt: number[];
|
|
11
|
+
}[];
|
|
12
|
+
export declare const harpoonParts: (lod: 0 | 1 | 2) => {
|
|
13
|
+
body: number[];
|
|
14
|
+
slide: number[];
|
|
15
|
+
stock: number[];
|
|
16
|
+
bolt: number[];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A surface of revolution about `d` (unit) through `at`: `prof` its rows, each how far along `d`,
|
|
20
|
+
* its radius and the colour of the band from the row before. `e` is a unit across `d`. Normals
|
|
21
|
+
* are smooth round it, outward; no row may share the one before's `s` (a step is a slope).
|
|
22
|
+
*/
|
|
23
|
+
export declare const lathe: (out: number[], at: Vec3, d: Vec3, e: Vec3, prof: [number, number, Vec3?][], n: number) => void;
|
|
24
|
+
/** A flat disc of radius `r` facing `d` (unit) at `at`, `e` a unit across it. */
|
|
25
|
+
export declare const disc: (out: number[], at: Vec3, d: Vec3, e: Vec3, r: number, n: number, rgb: Vec3) => void;
|
|
26
|
+
/**
|
|
27
|
+
* The harpoon's close-up finish (lod 2, the own view; the user, 2026-11-24: rounder, more
|
|
28
|
+
* detailed, lit buttons): a round scope on two ring mounts, its rubber eyecup toward the eye, a
|
|
29
|
+
* flared objective and a sunshade, an elevation turret and a lit illumination knob, a red reticle
|
|
30
|
+
* ring glowing in the eyepiece, and on the receiver's left side, toward the eye, a panel of three
|
|
31
|
+
* lit buttons. Raised by `rise` with the rest of the action; made once.
|
|
32
|
+
*/
|
|
33
|
+
export declare const harpoonFine: (shell: Vec3, ridge: Vec3, iron: Vec3, rise: number,
|
|
34
|
+
/** The own view's facets; fewer on a runner near by (lod 1). */
|
|
35
|
+
close: boolean) => number[];
|
|
36
|
+
/** Slide and stock travel in opposite directions as the compact back-mounted rifle opens. */
|
|
37
|
+
/** The turn that carries the model's x, y and z onto `right`, `up` and backward (-`forward`). */
|
|
38
|
+
export declare const quatOf: ([r, u, f]: Vec3[]) => Quat;
|
|
39
|
+
/**
|
|
40
|
+
* Slide and stock travel in opposite directions as the compact back-mounted rifle opens. With
|
|
41
|
+
* `pieces`, its shell, slide and stock are kept on the GPU (store.ts) and only placed, so their
|
|
42
|
+
* brushed metal lies on their rest place; the bolt, shortened as it folds, stays in `out`.
|
|
43
|
+
*/
|
|
44
|
+
export declare const drawHarpoon: (out: Out, lod: 0 | 1 | 2, at: Vec3, axes: Vec3[], scale: number, open: number, loaded?: boolean,
|
|
45
|
+
/** 0 as the reload starts to 1: the next bolt slides forward from behind the stock into its seat. */
|
|
46
|
+
feed?: number, pieces?: Pieces,
|
|
47
|
+
/** How far (m, unscaled) the bolt just fired has flown out of the muzzle; drawn under HARPOON_GONE. */
|
|
48
|
+
fired?: number) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Seconds the harpoon takes to unfold as it comes to hand (drawHarpoon()'s `open`, eased): slow
|
|
51
|
+
* enough to be seen (the user, 2026-11-24), SOUND.HARPOON_OPEN timed on it.
|
|
52
|
+
*/
|
|
53
|
+
export declare const HARPOON_DRAW = 1.1;
|
|
54
|
+
/** Metres a fired bolt is drawn leaving the muzzle; past this the flying ball alone shows it. */
|
|
55
|
+
export declare const HARPOON_GONE = 1.2;
|
|
56
|
+
/** Metres behind its seat the next bolt starts as it feeds in. */
|
|
57
|
+
export declare const HARPOON_BACK = 0.9;
|
|
58
|
+
/** The share of the harpoon's reload (swapOf()) at which the next bolt starts in, and its sound. */
|
|
59
|
+
export declare const HARPOON_RACK = 0.35;
|
|
60
|
+
/** Seconds the fired bolt takes to leave the drawn tube (HARPOON_GONE). */
|
|
61
|
+
export declare const HARPOON_OUT = 0.09;
|
|
62
|
+
/**
|
|
63
|
+
* The next bolt's slide into its seat at `swap` of the harpoon's reload (swapOf(), 0 to 1; -1 none):
|
|
64
|
+
* absent for the first 35 % (the tube empty after the shot), then eased in by 55 % (a quick slide,
|
|
65
|
+
* the user, 2026-11-25), seated after.
|
|
66
|
+
*/
|
|
67
|
+
export declare const harpoonFeed: (swap: number) => number;
|
|
68
|
+
export declare const hunterHarpoon: (lod: 0 | 1 | 2) => number[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Vec3 } from '../mesh';
|
|
2
|
+
export declare const bell: (x: number) => number;
|
|
3
|
+
export declare const built: Partial<Record<0 | 1 | 2, Record<string, number[]>>>;
|
|
4
|
+
export declare function marineBuild(lod: 0 | 1 | 2, chestFaces: number[], swordArm: number[], armFaces: number[], spotFaces: [number, number][]): number[];
|
|
5
|
+
export declare function net(skin: number[], faces: number[], at: (p: Vec3) => {
|
|
6
|
+
angle: number;
|
|
7
|
+
y: number;
|
|
8
|
+
collar: number;
|
|
9
|
+
low: number;
|
|
10
|
+
}, around: number, along: number): number[];
|
|
11
|
+
/** The yoke's lower edge at `x` across the shoulders, in the runner's metres. */
|
|
12
|
+
export declare const yokeLine: (x: number) => number;
|
|
13
|
+
export declare function yoke(skin: number[], faces: number[]): number[];
|
|
14
|
+
export declare function spots(skin: number[], faces: [number, number][]): number[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Vec3 } from '../mesh';
|
|
2
|
+
/**
|
|
3
|
+
* The Hunter's own rest skeleton in model space: the rig's joints on his 1.2 m stature, the arms
|
|
4
|
+
* where the sculpted sleeves hang (wider than the rig's) and the neck under the lowered mask.
|
|
5
|
+
* Rest rotations are the identity, so a joint's rest frame is this point alone.
|
|
6
|
+
*/
|
|
7
|
+
export declare const HUNTER_REST: Vec3[];
|
|
@@ -1,164 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
export declare const hunterWristEnds: () => Vec3[];
|
|
9
|
-
/**
|
|
10
|
-
* Slide and stock travel in opposite directions as the compact back-mounted rifle opens. With
|
|
11
|
-
* `pieces`, its shell, slide and stock are kept on the GPU (store.ts) and only placed, so their
|
|
12
|
-
* brushed metal lies on their rest place; the bolt, shortened as it folds, stays in `out`.
|
|
13
|
-
*/
|
|
14
|
-
export declare const drawHarpoon: (out: Out, lod: 0 | 1 | 2, at: Vec3, axes: Vec3[], scale: number, open: number, loaded?: boolean,
|
|
15
|
-
/** 0 as the reload starts to 1: the next bolt slides forward from behind the stock into its seat. */
|
|
16
|
-
feed?: number, pieces?: Pieces,
|
|
17
|
-
/** How far (m, unscaled) the bolt just fired has flown out of the muzzle; drawn under HARPOON_GONE. */
|
|
18
|
-
fired?: number) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Seconds the harpoon takes to unfold as it comes to hand (drawHarpoon()'s `open`, eased): slow
|
|
21
|
-
* enough to be seen (the user, 2026-11-24), SOUND.HARPOON_OPEN timed on it.
|
|
22
|
-
*/
|
|
23
|
-
export declare const HARPOON_DRAW = 1.1;
|
|
24
|
-
/** Metres a fired bolt is drawn leaving the muzzle; past this the flying ball alone shows it. */
|
|
25
|
-
export declare const HARPOON_GONE = 1.2;
|
|
26
|
-
/** Metres behind its seat the next bolt starts as it feeds in. */
|
|
27
|
-
export declare const HARPOON_BACK = 0.9;
|
|
28
|
-
/** The share of the harpoon's reload (swapOf()) at which the next bolt starts in, and its sound. */
|
|
29
|
-
export declare const HARPOON_RACK = 0.35;
|
|
30
|
-
/** Seconds the fired bolt takes to leave the drawn tube (HARPOON_GONE). */
|
|
31
|
-
export declare const HARPOON_OUT = 0.09;
|
|
32
|
-
/**
|
|
33
|
-
* The next bolt's slide into its seat at `swap` of the harpoon's reload (swapOf(), 0 to 1; -1 none):
|
|
34
|
-
* absent for the first 35 % (the tube empty after the shot), then eased in by 55 % (a quick slide,
|
|
35
|
-
* the user, 2026-11-25), seated after.
|
|
36
|
-
*/
|
|
37
|
-
export declare const harpoonFeed: (swap: number) => number;
|
|
38
|
-
export declare const hunterHarpoon: (lod: 0 | 1 | 2) => number[];
|
|
39
|
-
/**
|
|
40
|
-
* The Hunter's own rest skeleton in model space: the rig's joints on his 1.2 m stature, the arms
|
|
41
|
-
* where the sculpted sleeves hang (wider than the rig's) and the neck under the lowered mask.
|
|
42
|
-
* Rest rotations are the identity, so a joint's rest frame is this point alone.
|
|
43
|
-
*/
|
|
44
|
-
/**
|
|
45
|
-
* The top of the shoulder cannon's post, in the rest model: the hinge it folds about. The model
|
|
46
|
-
* draws it deployed, along the look; stowed it lies back along the top of the shoulder.
|
|
47
|
-
*/
|
|
48
|
-
export declare const CANNON_HINGE: Vec3;
|
|
49
|
-
/** The foot of the cannon's post, on its saddle on the left shoulder. */
|
|
50
|
-
export declare const CANNON_POST: Vec3;
|
|
51
|
-
/** The joint of the cannon's arm, between its foot and its hinge. */
|
|
52
|
-
export declare const CANNON_ELBOW: Vec3;
|
|
53
|
-
/** Radians the stowed cannon is turned about its hinge's right axis from the deployed one: muzzle back. */
|
|
54
|
-
export declare const CANNON_FOLD = 2.9;
|
|
55
|
-
/** The cannon's muzzle, from its hinge, deployed (the stepped muzzle's face). */
|
|
56
|
-
export declare const CANNON_MUZZLE: Vec3;
|
|
57
|
-
/** Seconds the cannon takes to fold out, or back. */
|
|
58
|
-
export declare const CANNON_SWING = 0.35;
|
|
59
|
-
/** The shoulder cannon's fold `k`, moved toward out (`out`) or stowed by `dt` seconds. */
|
|
60
|
-
export declare const unfold: (k: number, out: boolean, dt: number) => number;
|
|
61
|
-
/**
|
|
62
|
-
* The Hunter as his arms are posed: with the shoulder cannon in use his hands hold nothing, so he
|
|
63
|
-
* is drawn as with no weapon in hand (not the rail gun's hold, nor the harpoon's).
|
|
64
|
-
*/
|
|
65
|
-
export declare const handsFree: <P extends Pick<PlayerState, "railed" | "ammo" | "zapping">>(p: P) => P;
|
|
66
|
-
/** How far along its swing a cannon folded out by `k` is: a smooth start and stop. */
|
|
67
|
-
export declare const folded: (k: number) => number;
|
|
68
|
-
export declare const HUNTER_REST: Vec3[];
|
|
69
|
-
/** A rigid Hunter piece: the vertices that follow `joint`, in that joint's rest frame. */
|
|
70
|
-
export interface HunterPiece {
|
|
71
|
-
joint: number;
|
|
72
|
-
/** Too fine for a shadow (the temple optics and the rangefinder). */
|
|
73
|
-
thin: boolean;
|
|
74
|
-
/** The harpoon on his back, left out while it is in his hand. */
|
|
75
|
-
harpoon: boolean;
|
|
76
|
-
/** The shoulder cannon, from its hinge (CANNON_HINGE) rather than the joint: it folds about it. */
|
|
77
|
-
cannon: boolean;
|
|
78
|
-
/** The disc on his hip, left out while it is in his hand. */
|
|
79
|
-
disc: boolean;
|
|
80
|
-
/** A strip under the belt, from its hinge rather than the joint (stripSwing()). */
|
|
81
|
-
strip?: HunterStrip;
|
|
82
|
-
vertices: number[];
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* A strip under the belt, hung on a hinge at the middle of its top edge: its number, the hinge
|
|
86
|
-
* from the pelvis at rest, the hinge's axis (about which a positive turn swings the strip out of
|
|
87
|
-
* the body) and where its foot hangs from the hinge.
|
|
88
|
-
*/
|
|
89
|
-
export interface HunterStrip {
|
|
90
|
-
i: number;
|
|
91
|
-
at: Vec3;
|
|
92
|
-
axis: Vec3;
|
|
93
|
-
end: Vec3;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Where a strip under the belt hangs on a posed Hunter (the user, 2026-11-25: strips that follow
|
|
97
|
-
* the thighs): its hinge and its turn, the pelvis at `pelvis` turned by `q` and his joints at
|
|
98
|
-
* `joints` (hunterPose()). It hangs as it is modelled unless a thigh comes within STRIP_CLEAR of
|
|
99
|
-
* its line: then it swings out about its hinge, by the least turn that clears both thighs. One
|
|
100
|
-
* turn a strip, its vertices placed as a rigid piece's are: none is worked out here.
|
|
101
|
-
*/
|
|
102
|
-
export declare const stripSwing: (strip: HunterStrip, pelvis: Vec3, q: Quat, joints: Vec3[]) => [Vec3, Quat];
|
|
103
|
-
/**
|
|
104
|
-
* The triangles around a bending joint, blended between the parent bone `a` and the child `b`
|
|
105
|
-
* (`w`: each vertex's share of `b`) so the knee, ankle, hip and elbow do not open as they bend.
|
|
106
|
-
* Vertices in model space at rest.
|
|
107
|
-
*/
|
|
108
|
-
export interface HunterBand {
|
|
109
|
-
a: number;
|
|
110
|
-
b: number;
|
|
111
|
-
vertices: Float32Array;
|
|
112
|
-
w: Float32Array;
|
|
113
|
-
}
|
|
114
|
-
/** The Hunter's rigid pieces and, near, his blended joint bands. */
|
|
115
|
-
export interface HunterRig {
|
|
116
|
-
pieces: HunterPiece[];
|
|
117
|
-
bands: HunterBand[];
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* The Hunter cut into rigid pieces, one per joint (and shadow flag, and the stowed harpoon), so the runner's animated
|
|
121
|
-
* skeleton can carry him: each triangle goes to the nearest bone its part may follow. Above the
|
|
122
|
-
* far level, the triangles across a bend go to a blended band instead (BENDS).
|
|
123
|
-
* `skip` leaves out parts (the far level's dreadlocks and grille).
|
|
124
|
-
*/
|
|
125
|
-
export declare const hunterRig: (lod: 0 | 1 | 2, skip?: (name: string) => boolean) => HunterRig;
|
|
126
|
-
/**
|
|
127
|
-
* Where the Hunter's joints stand in the posed runner `pos`/`rot` (solve()): his own bones
|
|
128
|
-
* (HUNTER_REST) turned as the runner's, from a pelvis that moves as the runner's scaled to his
|
|
129
|
-
* stature. `at` is the runner's feet and `yaw` his heading.
|
|
130
|
-
*/
|
|
131
|
-
export declare const hunterPose: (pos: Vec3[], rot: [number, number, number, number][], at: Vec3, yaw: number, out?: Vec3[]) => Vec3[];
|
|
132
|
-
/**
|
|
133
|
-
* Draws a blended band (HunterBand) on the Hunter's posed joints (hunterPose()) and the runner's
|
|
134
|
-
* rotations: each vertex placed by both bones and mixed by its share, its normal likewise.
|
|
135
|
-
*/
|
|
136
|
-
export declare const blendHunter: (out: Out, band: HunterBand, joints: Vec3[], rot: [number, number, number, number][]) => void;
|
|
137
|
-
/** The thrown disc and the disc in hand, times the hip's (the user, 2026-11-23: bigger). */
|
|
138
|
-
export declare const DISC_SCALE = 1.5;
|
|
139
|
-
/**
|
|
140
|
-
* The hip's throwing disc (the model's 'Flying disc' without its belt clip) in its own frame: the
|
|
141
|
-
* hub at the origin, the disc in the x-y plane and its face along +z, DISC_SCALE times as big. The thrown disc and the disc
|
|
142
|
-
* in hand are drawn with it (the user, 2026-11-23: the armour's disc).
|
|
143
|
-
*/
|
|
144
|
-
export declare const discVertices: (lod: 0 | 1 | 2) => number[];
|
|
145
|
-
/**
|
|
146
|
-
* The disc's hub from the hand's grip (gun.ts grip()), metres: forward along the fingers, and down
|
|
147
|
-
* under the palm (against gun.ts axes()' right, the back of the hand).
|
|
148
|
-
*/
|
|
149
|
-
export declare const DISC_HOLD: readonly [number, number];
|
|
150
|
-
/** The own hand holding the disc, moved from the gun's place in camera space (right, up, ahead), metres. */
|
|
151
|
-
export declare const DISC_RAISE: Vec3;
|
|
152
|
-
/** The own hand holding the disc: how far its fingers lean ahead of straight up (a slope). */
|
|
153
|
-
export declare const DISC_TILT = 2;
|
|
154
|
-
/** The fingers on the disc fanned out this many times an open hand's (the user, 2026-11-23). */
|
|
155
|
-
export declare const DISC_SPREAD = 5.5;
|
|
156
|
-
/** How far the fingers bend over the disc's edge in all, radians, over their three joints (the user, 2026-11-23). */
|
|
157
|
-
export declare const DISC_HOOK = 1.4;
|
|
158
|
-
/** How far the fingers close over the disc (hand()'s curl): little, long over its hub (the user, 2026-11-23). */
|
|
159
|
-
export declare const DISC_CURL = 0.05;
|
|
160
|
-
/**
|
|
161
|
-
* The armour's disc in a hand (the user, 2026-11-23: the disc in hand is the one on his hip):
|
|
162
|
-
* centred `at`, its plane along `x` and `y` and its face along `n`, all unit.
|
|
163
|
-
*/
|
|
164
|
-
export declare const drawDisc: (out: Out, at: Vec3, x: Vec3, y: Vec3, n: Vec3, lod?: 0 | 1 | 2) => void;
|
|
1
|
+
export * from './hunter/constants';
|
|
2
|
+
export * from './hunter/marine';
|
|
3
|
+
export * from './hunter/model';
|
|
4
|
+
export * from './hunter/harpoon';
|
|
5
|
+
export * from './hunter/rest';
|
|
6
|
+
export * from './hunter/animation';
|
|
7
|
+
export * from './hunter/disc';
|