@khr3/core 0.1.2 → 0.1.3

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.
@@ -1,13 +1,11 @@
1
1
  import React from "react";
2
- import { type EcctrlVehicleHandle, type EcctrlVehicleProps, type ShapeCastWheelProps } from "@pinkaphant/ecctrl/vehicle";
2
+ import { type EcctrlVehicleHandle, type EcctrlVehicleProps, type ShapeCastWheelProps, type ThrustPropellerProps } from "@pinkaphant/ecctrl/vehicle";
3
3
  import { type KhrAssetBundle, type KhrCarConfig, type KhrDroneConfig } from "./khrTypes.js";
4
4
  export { solveWheelLoads, type SolvedWheel } from "./wheelLoads.js";
5
- /**
6
- * Wheel + tire assembly density (kg/m^3) used only when the .glb omits `ecctrlWheel.wheelDensity`.
7
- * 220 kg/m^3 * a 0.357 m * 0.273 m cylinder (0.109 m^3) = ~24 kg, a real passenger-car wheel+tire mass.
8
- */
5
+ /** Default wheel + tire assembly density (kg/m^3) when `.glb` omits `ecctrlWheel.wheelDensity`. */
9
6
  export declare const WHEEL_ASSEMBLY_DENSITY_KG_M3 = 220;
10
7
  export type KhrWheelConfig = Partial<Omit<ShapeCastWheelProps, "ref" | "key" | "children">>;
8
+ export type KhrPropellerConfig = Partial<Omit<ThrustPropellerProps, "ref" | "key" | "children">>;
11
9
  export interface KhrVehicleProps extends Omit<EcctrlVehicleProps, "ref" | "carConfig" | "droneConfig"> {
12
10
  ref?: React.Ref<EcctrlVehicleHandle>;
13
11
  bundle: KhrAssetBundle;
@@ -17,5 +15,6 @@ export interface KhrVehicleProps extends Omit<EcctrlVehicleProps, "ref" | "carCo
17
15
  wheelConfig?: KhrWheelConfig;
18
16
  frontWheelConfig?: KhrWheelConfig;
19
17
  rearWheelConfig?: KhrWheelConfig;
18
+ propellerConfig?: KhrPropellerConfig;
20
19
  }
21
- export declare function KhrVehicle({ ref, bundle, position, enable, carConfig, droneConfig, wheelConfig, frontWheelConfig, rearWheelConfig, vehicleRef, children, scale, colliders, ...vehicleProps }: KhrVehicleProps): React.JSX.Element;
20
+ export declare function KhrVehicle({ ref, bundle, position, enable, carConfig, droneConfig, wheelConfig, frontWheelConfig, rearWheelConfig, propellerConfig, vehicleRef, children, scale, colliders, ...vehicleProps }: KhrVehicleProps): React.JSX.Element;