@skewedaspect/sage 0.9.3 → 0.9.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Christopher Case
3
+ Copyright (c) 2026 Christopher Case
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -34,6 +34,8 @@ export interface GameEntityDefinition<State extends object = object> {
34
34
  y: number;
35
35
  z: number;
36
36
  };
37
+ /** If false, meshes spawn hidden (isVisible = false); they still collide and block raycasts. Default: true */
38
+ visible?: boolean;
37
39
  /** Material configuration */
38
40
  material?: {
39
41
  /** Material type: 'standard' (default) or 'pbr' */
package/dist/sage.es.js CHANGED
@@ -59,7 +59,7 @@ var he = class {
59
59
  configurable: !0
60
60
  });
61
61
  }
62
- }, k = "0.9.3", A = class {
62
+ }, k = "0.9.4", A = class {
63
63
  canvas;
64
64
  renderEngine;
65
65
  physics;
@@ -2300,6 +2300,7 @@ var ze = class {
2300
2300
  for (let e of o) e.material = n;
2301
2301
  }
2302
2302
  }
2303
+ if (r.visible === !1) for (let e of o) e.isVisible = !1;
2303
2304
  let c = a.getDescendants(!1).filter((e) => e instanceof D);
2304
2305
  for (let e of c) {
2305
2306
  let t = this._getNormalizedMetadata(e);