babylonjs-toolkit 9.9.3 → 9.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/lib/index.d.ts CHANGED
@@ -7,7 +7,7 @@ declare namespace TOOLKIT {
7
7
  * @class SceneManager - All rights reserved (c) 2024 Mackey Kinard
8
8
  */
9
9
  class SceneManager {
10
- /** Gets the toolkit framework version string (9.9.3 - R1) */
10
+ /** Gets the toolkit framework version string (9.9.4 - R1) */
11
11
  static get Version(): string;
12
12
  /** Gets the toolkit framework copyright notice */
13
13
  static get Copyright(): string;
@@ -158,6 +158,17 @@ declare namespace TOOLKIT {
158
158
  preventDefault?: boolean;
159
159
  useCapture?: boolean;
160
160
  }): Promise<void>;
161
+ /**
162
+ * Initialize the babylon toolkit physics engine
163
+ * @param scene The scene instance.
164
+ * @param gravity The gravity vector for the physics engine. If null, defaults to (0, -9.81, 0).
165
+ * @param autoDelete If true, the physics engine will be automatically deleted from the global scope when the scene is disposed. Default is true.
166
+ * @param useDeltaForWorldStep If true, the physics plugin will use the delta time between frames for world stepping. Default is false, which uses a fixed time step.
167
+ * @param hpInjection Optional Havok physics injection object to pass to the Havok plugin constructor. This can be used to inject a custom Havok instance or configuration.
168
+ * @param pluginParameters Optional Havok plugin parameters object to pass to the Havok plugin constructor. This can be used to configure the Havok plugin with specific settings.
169
+ * @returns a waitable promise.
170
+ */
171
+ static InitializePhysicsEngine(scene: BABYLON.Scene, gravity?: BABYLON.Vector3, autoDelete?: boolean, useDeltaForWorldStep?: boolean, hpInjection?: any, pluginParameters?: BABYLON.HavokPluginParameters): Promise<void>;
161
172
  /**
162
173
  * Initialize the scene loader plugin
163
174
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-toolkit",
3
- "version": "9.9.3",
3
+ "version": "9.9.4",
4
4
  "description": "Babylon Toolkit Runtime Library (UMD)",
5
5
  "main": "lib/babylon.toolkit.js",
6
6
  "types": "lib/index.d.ts",