@khr3/core 0.1.3 → 0.1.4
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/README.md +2 -2
- package/dist/KhrVehicle.d.ts +1 -1
- package/dist/index.js +252 -287
- package/dist/khrTypes.d.ts +0 -6
- package/dist/khrVehicleSlots.d.ts +7 -3
- package/dist/vehicle.js +140 -122
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ npm install @khr3/core @pinkaphant/ecctrl @dimforge/rapier3d-compat @react-three
|
|
|
26
26
|
| Package | Version | Required By |
|
|
27
27
|
| --- | --- | --- |
|
|
28
28
|
| `@dimforge/rapier3d-compat` | `0.19.2` | `@khr3/core`, `@khr3/core/vehicle` |
|
|
29
|
-
| `@pinkaphant/ecctrl` |
|
|
29
|
+
| `@pinkaphant/ecctrl` | `2.0.4-beta.2` | Optional (`@khr3/core/vehicle` only) |
|
|
30
30
|
| `@react-three/fiber` | `^9.0.0` | `@khr3/core`, `@khr3/core/vehicle` |
|
|
31
31
|
| `@react-three/rapier` | `^2.2.0` | `@khr3/core`, `@khr3/core/vehicle` |
|
|
32
32
|
| `react` | `^19.0.0` | `@khr3/core`, `@khr3/core/vehicle` |
|
|
@@ -40,7 +40,7 @@ npm install @khr3/core @pinkaphant/ecctrl @dimforge/rapier3d-compat @react-three
|
|
|
40
40
|
| Subpath | Exports |
|
|
41
41
|
| --- | --- |
|
|
42
42
|
| `@khr3/core` | `PhysicsWorld`, `createKhrGltfPlugin`, `useKhrGlb`, `loadKhrGlb`, `cloneKhrBundle`, `disposeKhrBundle`, `claimBundleMount`, `releaseBundleMount`, `exportKhrGlb`, `patchGlbJsonChunk`, `KhrCollider`, `KhrAssembly`, `JointRegistryContext`, `assertUnitScale`, `assertIdentityWorldScale`, `assertSceneIdentityWorldScale`, `KhrValidationError`, KHR & rotor tag types |
|
|
43
|
-
| `@khr3/core/vehicle` | `KhrVehicle`, `solveWheelLoads`, `
|
|
43
|
+
| `@khr3/core/vehicle` | `KhrVehicle`, `solveWheelLoads`, `BENCH_GRAVITY`, `WHEEL_ASSEMBLY_DENSITY_KG_M3`, `KhrPropellerConfig`, `KhrVehicleProps`, `KhrWheelConfig`, `SolvedWheel` |
|
|
44
44
|
| `@khr3/core/curves` | `compilePacejkaCurve`, `tireGripForSurface`, `engineHorsepowerForPeakTorque`, `TIRE_ARCHETYPES`, `TIRE_SLIP_CURVES`, `ENGINE_TORQUE_CURVES`, `STEER_SPEED_CURVES`, `TireArchetypePreset`, `CurveData`, `CurvePoint` |
|
|
45
45
|
|
|
46
46
|
## Quick Start
|
package/dist/KhrVehicle.d.ts
CHANGED
|
@@ -17,4 +17,4 @@ export interface KhrVehicleProps extends Omit<EcctrlVehicleProps, "ref" | "carCo
|
|
|
17
17
|
rearWheelConfig?: KhrWheelConfig;
|
|
18
18
|
propellerConfig?: KhrPropellerConfig;
|
|
19
19
|
}
|
|
20
|
-
export declare function KhrVehicle({
|
|
20
|
+
export declare function KhrVehicle({ scale, colliders, bundle, ...rest }: KhrVehicleProps): React.JSX.Element;
|