@plupin/character 0.5.0 → 0.6.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/wear3d.d.ts CHANGED
@@ -52,10 +52,14 @@ export interface WearKit {
52
52
  /** Optional custom hair colour override. */
53
53
  hairColor?: string;
54
54
  }
55
- /** What the body is doing this frame, for the clothes to react to (units and radians per second). */
55
+ /** What the body is doing this frame, for the clothes & hair to jiggle/sway to (units and radians per second). */
56
56
  export interface WearMotion {
57
57
  lift: number;
58
58
  yaw: number;
59
+ /** Lateral hip/body velocity in world-local X (positive = moving right). */
60
+ swayX?: number;
61
+ /** Forward/back velocity in world-local Z. */
62
+ swayZ?: number;
59
63
  }
60
64
  export interface WornPiece {
61
65
  object: Group;
@@ -84,6 +88,8 @@ export declare class Spring {
84
88
  export declare const calm: (motion: WearMotion) => {
85
89
  lift: number;
86
90
  yaw: number;
91
+ swayX: number;
92
+ swayZ: number;
87
93
  };
88
94
  export declare function canvasTexture(size: number, draw: (ctx: CanvasRenderingContext2D, size: number) => void): CanvasTexture<HTMLCanvasElement>;
89
95
  /** A solid of revolution from (radius, height) pairs. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plupin/character",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Plup, the Plupin mascot, in three.js and canvas: createPlup, drawPlup2D, clips, emotes and the listing validator.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",