@zylem/game-lib 0.9.9 → 0.9.10

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.
@@ -3156,6 +3156,8 @@ export type GameEntityOptions = {
3156
3156
  color?: Color;
3157
3157
  size?: Vec3Input;
3158
3158
  position?: Vec3Input;
3159
+ rotation?: Vec3Input;
3160
+ scale?: Vec3Input;
3159
3161
  hideUntilPositioned?: boolean;
3160
3162
  visible?: boolean;
3161
3163
  editorOwned?: boolean;
@@ -9347,15 +9349,15 @@ export class ZylemZone extends GameEntity<ZylemZoneOptions> implements Collision
9347
9349
  // /Users/timothycool/Projects/zylem-projects/simulation/packages/behaviors/dist/particle-emitter.d.ts:60:9 - (ae-forgotten-export) The symbol "voidMagic" needs to be exported by the entry point public.d.ts
9348
9350
  // /Users/timothycool/Projects/zylem-projects/simulation/packages/behaviors/dist/particle-emitter.d.ts:61:9 - (ae-forgotten-export) The symbol "psychic" needs to be exported by the entry point public.d.ts
9349
9351
  // /Users/timothycool/Projects/zylem-projects/simulation/packages/behaviors/dist/payload-WEzfgjSL.d.ts:48:5 - (ae-forgotten-export) The symbol "PlainWorkerFragmentPayload" needs to be exported by the entry point public.d.ts
9350
- // dist/entity-CY75JJSw.d.ts:399:5 - (ae-forgotten-export) The symbol "RenderCategory_2" needs to be exported by the entry point public.d.ts
9351
- // dist/entity-CY75JJSw.d.ts:400:5 - (ae-forgotten-export) The symbol "RuntimeEntityOptions" needs to be exported by the entry point public.d.ts
9352
- // dist/entity-CY75JJSw.d.ts:401:5 - (ae-forgotten-export) The symbol "CollisionOptions" needs to be exported by the entry point public.d.ts
9353
- // dist/entity-CY75JJSw.d.ts:410:9 - (ae-forgotten-export) The symbol "IBuilder" needs to be exported by the entry point public.d.ts
9354
- // dist/entity-CY75JJSw.d.ts:410:9 - (ae-forgotten-export) The symbol "EntityMeshBuilder" needs to be exported by the entry point public.d.ts
9355
- // dist/entity-CY75JJSw.d.ts:411:9 - (ae-forgotten-export) The symbol "EntityCollisionBuilder" needs to be exported by the entry point public.d.ts
9356
- // dist/entity-CY75JJSw.d.ts:412:9 - (ae-forgotten-export) The symbol "MaterialBuilder" needs to be exported by the entry point public.d.ts
9357
- // dist/game-uQd7k6-m.d.ts:258:5 - (ae-forgotten-export) The symbol "StageInterface" needs to be exported by the entry point public.d.ts
9358
- // dist/stage-Dez16Gxm.d.ts:1194:5 - (ae-forgotten-export) The symbol "StageAssetLoaderConfig" needs to be exported by the entry point public.d.ts
9352
+ // dist/entity-B8VygThO.d.ts:406:5 - (ae-forgotten-export) The symbol "RenderCategory_2" needs to be exported by the entry point public.d.ts
9353
+ // dist/entity-B8VygThO.d.ts:407:5 - (ae-forgotten-export) The symbol "RuntimeEntityOptions" needs to be exported by the entry point public.d.ts
9354
+ // dist/entity-B8VygThO.d.ts:408:5 - (ae-forgotten-export) The symbol "CollisionOptions" needs to be exported by the entry point public.d.ts
9355
+ // dist/entity-B8VygThO.d.ts:417:9 - (ae-forgotten-export) The symbol "IBuilder" needs to be exported by the entry point public.d.ts
9356
+ // dist/entity-B8VygThO.d.ts:417:9 - (ae-forgotten-export) The symbol "EntityMeshBuilder" needs to be exported by the entry point public.d.ts
9357
+ // dist/entity-B8VygThO.d.ts:418:9 - (ae-forgotten-export) The symbol "EntityCollisionBuilder" needs to be exported by the entry point public.d.ts
9358
+ // dist/entity-B8VygThO.d.ts:419:9 - (ae-forgotten-export) The symbol "MaterialBuilder" needs to be exported by the entry point public.d.ts
9359
+ // dist/game-CoNlUzGO.d.ts:258:5 - (ae-forgotten-export) The symbol "StageInterface" needs to be exported by the entry point public.d.ts
9360
+ // dist/stage-BO-E42In.d.ts:1196:5 - (ae-forgotten-export) The symbol "StageAssetLoaderConfig" needs to be exported by the entry point public.d.ts
9359
9361
 
9360
9362
  // (No @packageDocumentation comment for this package)
9361
9363
 
@@ -1505,6 +1505,8 @@ export declare class CameraManager implements EditorCameraHost {
1505
1505
  private _screenSpacePanIds;
1506
1506
  /** Side, top, and isometric views that have already been placed on the gameplay camera. */
1507
1507
  private _framedEditorViews;
1508
+ /** True after the free camera has copied the gameplay pose once. */
1509
+ private _freePoseCaptured;
1508
1510
  /** World boxes of stage entities, read when an orthographic view is first shown. */
1509
1511
  private _entityBounds;
1510
1512
  /** Game camera to restore when the editor releases the main view. */
@@ -6130,6 +6132,13 @@ export declare type GameEntityOptions = {
6130
6132
  color?: Color;
6131
6133
  size?: Vec3Input;
6132
6134
  position?: Vec3Input;
6135
+ /** Spawn orientation as Euler angles in radians, applied in XYZ order. */
6136
+ rotation?: Vec3Input;
6137
+ /**
6138
+ * Spawn scale. Colliders are scaled with the render object. An actor
6139
+ * sizes its model from this instead.
6140
+ */
6141
+ scale?: Vec3Input;
6133
6142
  /**
6134
6143
  * Spawn visibility behavior:
6135
6144
  * - `undefined` (default): hidden while `spawnEntity` runs, revealed once
@@ -14196,6 +14205,8 @@ declare class StageEntityDelegate {
14196
14205
  */
14197
14206
  spawnEntity(child: BaseNode): Promise<void>;
14198
14207
  handleLateModelReady(entity: GameEntity<any>): void;
14208
+ /** Apply the `rotation` and `scale` options before the body is spawned. */
14209
+ private applySpawnTransform;
14199
14210
  /**
14200
14211
  * Register an entity for bundle or instanced rendering when opted in via
14201
14212
  * `category: 'environment'` or `category: 'pack'`.