@adatechnology/game-vehicles-three 0.11.0 → 0.12.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-GAPMLLDL.js → chunk-LVDWW5KZ.js} +616 -15
- package/dist/chunk-LVDWW5KZ.js.map +1 -0
- package/dist/index.d.ts +7 -32
- package/dist/index.global.js +1726 -1528
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +9 -468
- package/dist/index.js.map +1 -1
- package/dist/{testing-CRVetKNa.d.ts → testing-BgTVk344.d.ts} +2 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -2
- package/dist/worker-kinds.d.ts +1 -2
- package/dist/worker-kinds.js +2 -4
- package/dist/worker-kinds.js.map +1 -1
- package/package.json +13 -14
- package/dist/chunk-GAPMLLDL.js.map +0 -1
- package/dist/chunk-UHLZ23KF.js +0 -565
- package/dist/chunk-UHLZ23KF.js.map +0 -1
- package/dist/worker-kinds-Dnbh9_c9.d.ts +0 -51
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { E as EngineProfile, V as VehicleSoundKeys, B as BuiltVehicle } from './testing-
|
|
2
|
-
export { a as BIKE_ENGINE, b as BuildVehicleOptions, C as CAR_ENGINE, c as CRASH_SPEEDS, D as DEFAULT_TEST_VEHICLES, d as DEFAULT_TEST_WRECKS, e as DEFAULT_VEHICLE_SOUND_KEYS, f as DocumentLike, g as ENGINE_PROFILES, h as EffectsLike, i as EngineLayer, j as EngineLoadLayer, F as FleetDims, M as ModuleRoomLike, P as PAGE_ITEM_ALIASES, k as PAGE_SCENARIO_ALIASES, l as PROVING_AREA_ID, m as PROVING_TEXT, n as ProvingModuleOptions, o as ProvingRoomLike, p as ProvingText, T as TRUCK_ENGINE, q as VEHICLES_AREA_ID, r as VEHICLE_SCENARIO_IDS, s as VehicleEffectIds, t as VehicleFleetContent, u as VehicleQuality, v as VehicleSoundIds, w as VehicleWreck, x as VehiclesContext, y as VehiclesRoom, z as VehiclesTestFleet, A as VehiclesTestOptions, G as VehiclesThree, H as VehiclesThreeOptions, I as createProvingModule, J as createVehiclesTestModule, K as createVehiclesThree, L as defaultEffectIds, N as defaultSoundIds, O as engineProfileOfGroup, Q as hornOfGroup, R as loadProvingModule, S as loadVehiclesTestModule } from './testing-
|
|
1
|
+
import { E as EngineProfile, V as VehicleSoundKeys, B as BuiltVehicle } from './testing-BgTVk344.js';
|
|
2
|
+
export { a as BIKE_ENGINE, b as BuildVehicleOptions, C as CAR_ENGINE, c as CRASH_SPEEDS, D as DEFAULT_TEST_VEHICLES, d as DEFAULT_TEST_WRECKS, e as DEFAULT_VEHICLE_SOUND_KEYS, f as DocumentLike, g as ENGINE_PROFILES, h as EffectsLike, i as EngineLayer, j as EngineLoadLayer, F as FleetDims, M as ModuleRoomLike, P as PAGE_ITEM_ALIASES, k as PAGE_SCENARIO_ALIASES, l as PROVING_AREA_ID, m as PROVING_TEXT, n as ProvingModuleOptions, o as ProvingRoomLike, p as ProvingText, T as TRUCK_ENGINE, q as VEHICLES_AREA_ID, r as VEHICLE_SCENARIO_IDS, s as VehicleEffectIds, t as VehicleFleetContent, u as VehicleQuality, v as VehicleSoundIds, w as VehicleWreck, x as VehiclesContext, y as VehiclesRoom, z as VehiclesTestFleet, A as VehiclesTestOptions, G as VehiclesThree, H as VehiclesThreeOptions, I as createProvingModule, J as createVehiclesTestModule, K as createVehiclesThree, L as defaultEffectIds, N as defaultSoundIds, O as engineProfileOfGroup, Q as hornOfGroup, R as loadProvingModule, S as loadVehiclesTestModule } from './testing-BgTVk344.js';
|
|
3
3
|
import { EffectSink, RainCover, Vec3, AudioSink, AnimationClipSpec, DrawnCollider, WorkerCoordinator } from '@adatechnology/game-contracts';
|
|
4
|
-
import { CabinSource, VehicleContext, VehicleDestructible, PartDef } from '@adatechnology/game-vehicles';
|
|
4
|
+
import { CabinSource, VehicleContext, HullPlan, HullPlanResult, VehicleDestructible, PartDef } from '@adatechnology/game-vehicles';
|
|
5
|
+
export { FLAT_PAD, HullFace, HullPlanJob, HullPlanResult, MAX_HULL_POINTS, convexFaces, hullVolume, reducePoints } from '@adatechnology/game-vehicles';
|
|
5
6
|
import { LoopRecipe, Falloff, SampleAlias, SoundRecipe, SoundBank } from '@adatechnology/game-audio';
|
|
6
7
|
import * as THREE_NS from 'three';
|
|
7
8
|
import { Texture, Material, Color, Object3D, Matrix4, MeshStandardMaterial, MeshBasicMaterial, Mesh, Vector3, Box3, CanvasTexture, CircleGeometry, BufferGeometry, Side } from 'three';
|
|
8
9
|
import { StaticBatchQueue } from '@adatechnology/game-render-three';
|
|
9
|
-
import { Vec3 as Vec3$1, ShapeDesc, BodyId,
|
|
10
|
-
import { C as CutNode, H as HullPlanResult } from './worker-kinds-Dnbh9_c9.js';
|
|
11
|
-
export { a as HullPlanJob } from './worker-kinds-Dnbh9_c9.js';
|
|
10
|
+
import { Vec3 as Vec3$1, ShapeDesc, BodyId, SeamWorld } from '@adatechnology/game-physics';
|
|
12
11
|
import '@adatechnology/game-vehicles-driving';
|
|
13
12
|
import '@adatechnology/game-vehicles-proving';
|
|
14
13
|
|
|
@@ -622,17 +621,6 @@ interface WindshieldMist {
|
|
|
622
621
|
}
|
|
623
622
|
declare function createWindshieldMist(THREE: MistThree, built: BuiltVehicle): WindshieldMist;
|
|
624
623
|
|
|
625
|
-
/** Points a hull is made of at most (design 10.1). */
|
|
626
|
-
declare const MAX_HULL_POINTS = 64;
|
|
627
|
-
/** A flat piece (thinner than twice this) gets this much (m) on each side of its plane. */
|
|
628
|
-
declare const FLAT_PAD = 0.0025;
|
|
629
|
-
|
|
630
|
-
/** What the division decided about a car and kept: the cuts of each unit, and the protrusions (by number) taken off each piece. Later builds of the same car (dented) follow it. */
|
|
631
|
-
interface HullPlan {
|
|
632
|
-
readonly cuts: Map<string, CutNode>;
|
|
633
|
-
readonly taken: Map<string, Set<number>>;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
624
|
/** A hull and the drawn vertices (x y z triples) it was made from. */
|
|
637
625
|
interface SharedHull {
|
|
638
626
|
readonly hull: VehicleHull;
|
|
@@ -744,7 +732,7 @@ declare const withoutPart: (total: BodyMass, part: BodyMass) => BodyMass;
|
|
|
744
732
|
type Three = typeof THREE_NS;
|
|
745
733
|
interface CrashPartsOptions {
|
|
746
734
|
readonly THREE: Three;
|
|
747
|
-
readonly world:
|
|
735
|
+
readonly world: SeamWorld;
|
|
748
736
|
readonly vehicle: VehicleDestructible;
|
|
749
737
|
/** The frame the hulls and the drawn meshes are in (`createVehicleColliders`' frame); its pose is the body's. */
|
|
750
738
|
readonly frame: THREE_NS.Object3D;
|
|
@@ -793,17 +781,4 @@ declare const createCrashParts: (options: CrashPartsOptions) => CrashParts;
|
|
|
793
781
|
*/
|
|
794
782
|
declare const holdWithin: (old: ArrayLike<number>, next: Float32Array, slop: number) => Float32Array;
|
|
795
783
|
|
|
796
|
-
|
|
797
|
-
/** A hull face: three point numbers, wound so the normal (right hand) points out of the hull. */
|
|
798
|
-
type HullFace = readonly [number, number, number];
|
|
799
|
-
/** The faces of the convex hull of the points (x y z triples), wound outward; null when the points do not enclose a volume. */
|
|
800
|
-
declare const convexFaces: (points: ArrayLike<number>) => HullFace[] | null;
|
|
801
|
-
/** The volume (m3) the faces enclose. */
|
|
802
|
-
declare const hullVolume: (points: ArrayLike<number>, faces: readonly HullFace[]) => number;
|
|
803
|
-
/**
|
|
804
|
-
* At most `max` of the points (x y z triples): the extreme of each of the 26 directions, then the point farthest from those taken, again and again. Always points of the input,
|
|
805
|
-
* so a hull made of them never leaves what was drawn.
|
|
806
|
-
*/
|
|
807
|
-
declare const reducePoints: (points: ArrayLike<number>, max: number) => number[];
|
|
808
|
-
|
|
809
|
-
export { type BodyEvent, type BodyMass, type BodyThree, BuiltVehicle, CAR_RECORDED_RPM, CAR_START_RUN_STOP, type CabinSmoke, type CrashParts, type CrashPartsOptions, DASHBOARD_LOOK, type DashboardOptions, type DashboardReading, type EngineBudget, type EngineBudgetOptions, type EngineLayerSetting, type EngineMixInput, EngineProfile, FLAT_PAD, type HullFace, type HullPlanCache, type HullPlanCacheStats, HullPlanResult, LAMP_RULES, LITE_CLASSES, type LampSwitch, type LiteClass, type LiteFusion, MAX_HULL_POINTS, MIST_RULES, type MistThree, PRUNE_BELOW, RAIN_SHELL_INTERVAL, VEHICLE_LOD_DISTANCE, VEHICLE_LOOPS, VEHICLE_LOOP_FALLOFF, VEHICLE_PRELOAD_SOUNDS, VEHICLE_SAMPLE_ALIASES, VEHICLE_SOUNDS, VEHICLE_SOUND_BANK, type VehicleBody, type VehicleBodyOptions, type VehicleColliders, type VehicleCollidersOptions, type VehicleDashboard, type VehicleHull, type VehicleLamps, type VehicleLod, type VehicleLodKit, type VehicleRainCovers, type VehicleSound, type VehicleSoundFrame, VehicleSoundKeys, type VehicleSoundOptions, type VehicleSoundReading, type WheelRoll, type WheelRollThree, type WindowId, type WindshieldMist, boxInertia, classColor, classify, convexFaces, createCabinSmoke, createCrashParts, createEngineBudget, createGearGuess, createHullPlanCache, createVehicleBody, createVehicleColliders, createVehicleDashboard, createVehicleLamps, createVehicleLod, createVehicleLodQueue, createVehicleRainCovers, createVehicleSound, createWheelRoll, createWindshieldMist, engineMix, firingHz, fuse, holdWithin, hullVolume, layerWeight, liteMaterials, liteMeshes, reducePoints, rpmShare, slideOfGrip, vehicleColliders, vehicleHulls, withoutPart };
|
|
784
|
+
export { type BodyEvent, type BodyMass, type BodyThree, BuiltVehicle, CAR_RECORDED_RPM, CAR_START_RUN_STOP, type CabinSmoke, type CrashParts, type CrashPartsOptions, DASHBOARD_LOOK, type DashboardOptions, type DashboardReading, type EngineBudget, type EngineBudgetOptions, type EngineLayerSetting, type EngineMixInput, EngineProfile, type HullPlanCache, type HullPlanCacheStats, LAMP_RULES, LITE_CLASSES, type LampSwitch, type LiteClass, type LiteFusion, MIST_RULES, type MistThree, PRUNE_BELOW, RAIN_SHELL_INTERVAL, VEHICLE_LOD_DISTANCE, VEHICLE_LOOPS, VEHICLE_LOOP_FALLOFF, VEHICLE_PRELOAD_SOUNDS, VEHICLE_SAMPLE_ALIASES, VEHICLE_SOUNDS, VEHICLE_SOUND_BANK, type VehicleBody, type VehicleBodyOptions, type VehicleColliders, type VehicleCollidersOptions, type VehicleDashboard, type VehicleHull, type VehicleLamps, type VehicleLod, type VehicleLodKit, type VehicleRainCovers, type VehicleSound, type VehicleSoundFrame, VehicleSoundKeys, type VehicleSoundOptions, type VehicleSoundReading, type WheelRoll, type WheelRollThree, type WindowId, type WindshieldMist, boxInertia, classColor, classify, createCabinSmoke, createCrashParts, createEngineBudget, createGearGuess, createHullPlanCache, createVehicleBody, createVehicleColliders, createVehicleDashboard, createVehicleLamps, createVehicleLod, createVehicleLodQueue, createVehicleRainCovers, createVehicleSound, createWheelRoll, createWindshieldMist, engineMix, firingHz, fuse, holdWithin, layerWeight, liteMaterials, liteMeshes, rpmShare, slideOfGrip, vehicleColliders, vehicleHulls, withoutPart };
|