@adatechnology/game-weapons-three 0.27.6 → 0.29.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/dist/{chunk-GXZM4CE6.js → chunk-5IW5LQG6.js} +89 -7
- package/dist/chunk-5IW5LQG6.js.map +1 -0
- package/dist/index.d.ts +10 -4
- package/dist/index.global.js +1679 -942
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/testing.js +1 -1
- package/package.json +12 -12
- package/dist/chunk-GXZM4CE6.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -334,17 +334,23 @@ declare const VIEW_MOTION: {
|
|
|
334
334
|
* right, y up, z back towards the eye) and turned about its own grip. The hands close on the tool's grips, so they follow it: one motion moves the tool and
|
|
335
335
|
* the arms alike, in the first-person view and on the body.
|
|
336
336
|
*/
|
|
337
|
-
/** One key of a motion: the share of its time (0..1), the offset from the hold (metres) and the turn
|
|
337
|
+
/** One key of a motion: the share of its time (0..1), the offset from the hold (metres) and the turn (radians, Euler x then y then z: x raises the point, y swings it to the left, z rolls it about itself). */
|
|
338
338
|
interface ToolMotionKey {
|
|
339
339
|
readonly at: number;
|
|
340
340
|
readonly offset: readonly [number, number, number];
|
|
341
341
|
readonly turn: readonly [number, number, number];
|
|
342
342
|
}
|
|
343
|
-
/**
|
|
343
|
+
/**
|
|
344
|
+
* A motion of a tool: its keys, from the hold back to the hold. `pivot: 'grip'` turns the tool about the hand that holds it (a wrist's cut, a bat's swing written as
|
|
345
|
+
* the hands' path); left out, the turn is about where the hold hangs from (the eye in first person, the shoulder on the body), as the shovel's motions were written.
|
|
346
|
+
*/
|
|
344
347
|
interface ToolMotion {
|
|
345
348
|
readonly keys: readonly ToolMotionKey[];
|
|
349
|
+
readonly pivot?: 'grip';
|
|
346
350
|
}
|
|
347
|
-
/** The motions of each
|
|
351
|
+
/** The motions of each family of melee blows (`MELEE_FAMILIES` of game-weapons), by the motion names of its blows. */
|
|
352
|
+
declare const FAMILY_MOTIONS: ReadonlyMap<string, ReadonlyMap<string, ToolMotion>>;
|
|
353
|
+
/** The motions of each tool by weapon id, then by motion name: the shovel's own, and every weapon of a melee family moves as its family. A game adds its own tools' motions to this map. */
|
|
348
354
|
declare const TOOL_MOTIONS: ReadonlyMap<string, ReadonlyMap<string, ToolMotion>>;
|
|
349
355
|
/** Where a motion has the tool at a share of its time (0..1): its offset and turn, eased between the keys. */
|
|
350
356
|
declare function sampleToolMotion(motion: ToolMotion, at: number): Omit<ToolMotionKey, 'at'>;
|
|
@@ -438,4 +444,4 @@ interface HolsteredWeapons {
|
|
|
438
444
|
}
|
|
439
445
|
declare const createHolsteredWeapons: (options: HolsteredWeaponsOptions) => HolsteredWeapons;
|
|
440
446
|
|
|
441
|
-
export { ARCHETYPE_MODELS, ATTACHMENT_MODELS, AttachmentModelRegistry, type AttachmentRig, BODY_ACTIONS, type CartridgeShape, type ClipContext, DEFAULT_THUMBNAIL_BASE, EXPLOSIVE_MODEL_IDS, type FitAttachmentOptions, GROUND_SLOT, HOLSTER_PLACEMENT, HOLSTER_TOSS, type HolsterRig, type HolsteredWeapons, type HolsteredWeaponsOptions, ItemModels, LOOSE_ROLLING_RESISTANCE, LaserRaycast, type LooseBody, type LooseCollider, type LooseLaunch, type LooseReading, MODEL_ENTRIES, type ModelEntry, ModelFamily, ModelKit, ModelOptions, ModelParts, P13_VALVE_MESH, type ProjectileModel, type ProjectileQuery, SLING_HANG, TOOL_MOTIONS, type ToolMotion, type ToolMotionKey, VIEW_HOLD, VIEW_MOTION, type ViewHoldKind, WEAPON_THUMBNAILS, WORLD_EFFECTS, WORLD_EXPLOSIVE_IDS, WORLD_EXPLOSIVE_PREFIX, WeaponItemModel, WeaponModel, type WeaponProp, WeaponProps, type WeaponPropsOptions, type WeaponThumbnailEntry, type WorldEffectIds, type WorldEffectsOptions, type WorldExplosiveOptions, type WorldExplosiveShells, applyCondition, buildCartridge, buildCasing, buildExplosiveModel, buildHolsterRig, buildModeledProp, buildProp, buildRound, buildToolClips, buildTripodMountedProp, buildWeaponModelById, cartridgeShape, casingCollider, createHolsteredWeapons, createWeaponProps, createWorldEffects, createWorldExplosiveShells, dropLoose, explosiveCollider, fitAttachmentModels, hasExplosiveModel, hasWeaponModel, holsteredModel, modeledPropSpec, partRegistry, projectileModel, rigStock, rigUnderbarrel, sampleToolMotion, spawnLoose, syncLoose, toWorldLens, weaponProp, weaponThumbnailCredit, weaponThumbnailUrl, worldExplosiveItem, worldExplosiveShell, worldExplosiveValve };
|
|
447
|
+
export { ARCHETYPE_MODELS, ATTACHMENT_MODELS, AttachmentModelRegistry, type AttachmentRig, BODY_ACTIONS, type CartridgeShape, type ClipContext, DEFAULT_THUMBNAIL_BASE, EXPLOSIVE_MODEL_IDS, FAMILY_MOTIONS, type FitAttachmentOptions, GROUND_SLOT, HOLSTER_PLACEMENT, HOLSTER_TOSS, type HolsterRig, type HolsteredWeapons, type HolsteredWeaponsOptions, ItemModels, LOOSE_ROLLING_RESISTANCE, LaserRaycast, type LooseBody, type LooseCollider, type LooseLaunch, type LooseReading, MODEL_ENTRIES, type ModelEntry, ModelFamily, ModelKit, ModelOptions, ModelParts, P13_VALVE_MESH, type ProjectileModel, type ProjectileQuery, SLING_HANG, TOOL_MOTIONS, type ToolMotion, type ToolMotionKey, VIEW_HOLD, VIEW_MOTION, type ViewHoldKind, WEAPON_THUMBNAILS, WORLD_EFFECTS, WORLD_EXPLOSIVE_IDS, WORLD_EXPLOSIVE_PREFIX, WeaponItemModel, WeaponModel, type WeaponProp, WeaponProps, type WeaponPropsOptions, type WeaponThumbnailEntry, type WorldEffectIds, type WorldEffectsOptions, type WorldExplosiveOptions, type WorldExplosiveShells, applyCondition, buildCartridge, buildCasing, buildExplosiveModel, buildHolsterRig, buildModeledProp, buildProp, buildRound, buildToolClips, buildTripodMountedProp, buildWeaponModelById, cartridgeShape, casingCollider, createHolsteredWeapons, createWeaponProps, createWorldEffects, createWorldExplosiveShells, dropLoose, explosiveCollider, fitAttachmentModels, hasExplosiveModel, hasWeaponModel, holsteredModel, modeledPropSpec, partRegistry, projectileModel, rigStock, rigUnderbarrel, sampleToolMotion, spawnLoose, syncLoose, toWorldLens, weaponProp, weaponThumbnailCredit, weaponThumbnailUrl, worldExplosiveItem, worldExplosiveShell, worldExplosiveValve };
|