@adatechnology/game-weapons-three 0.25.0 → 0.26.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.d.ts CHANGED
@@ -79,7 +79,7 @@ interface ProjectileModel {
79
79
  */
80
80
  declare function projectileModel(THREE: typeof THREE_NS, query: ProjectileQuery): ProjectileModel | null;
81
81
 
82
- /** Rolling resistance of the kit's round loose pieces (a casing) on a hard floor: the C_rr the gate-0 B2 run settled on. */
82
+ /** Rolling resistance of the kit's round loose pieces (a casing, a grenade) on a hard floor: the C_rr the gate-0 B2 run settled on. */
83
83
  declare const LOOSE_ROLLING_RESISTANCE = 0.015;
84
84
  /** What the engine needs to make a loose body from what the gallery drew. */
85
85
  interface LooseCollider {
@@ -91,6 +91,11 @@ interface LooseCollider {
91
91
  }
92
92
  /** A casing lying along x as `buildCasing` draws it (the engine's cylinder stands on y, so its child is turned a quarter about z), rolling on its own radius. */
93
93
  declare function casingCollider(radius: number, length: number): LooseCollider;
94
+ /**
95
+ * The M67 as `projectileModel` draws it (body, fuze, spoon; centred on the middle of the model), with the rolling resistance of a round piece, so a thrown one
96
+ * bounces to rest as the arsenal's does. Undefined for an explosive the engine has no collider of.
97
+ */
98
+ declare function explosiveCollider(THREE: typeof THREE_NS, explosive: string): LooseCollider | undefined;
94
99
  /** A loose body in the engine: what the costura keeps between frames. */
95
100
  interface LooseBody {
96
101
  readonly id: BodyId;
@@ -432,4 +437,4 @@ interface HolsteredWeapons {
432
437
  }
433
438
  declare const createHolsteredWeapons: (options: HolsteredWeaponsOptions) => HolsteredWeapons;
434
439
 
435
- 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, fitAttachmentModels, hasExplosiveModel, hasWeaponModel, holsteredModel, modeledPropSpec, partRegistry, projectileModel, rigStock, rigUnderbarrel, sampleToolMotion, spawnLoose, syncLoose, toWorldLens, weaponProp, weaponThumbnailCredit, weaponThumbnailUrl, worldExplosiveItem, worldExplosiveShell, worldExplosiveValve };
440
+ 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 };