@galacean/engine-physics-lite 0.9.0-beta.80 → 1.0.0-alpha.6

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/README.md CHANGED
@@ -21,8 +21,8 @@ import { LitePhysics } from "@galacean/engine-physics-lite";
21
21
  ## Usage
22
22
 
23
23
  ```typescript
24
- // Create engine by passing in the HTMLCanvasElement id and adjust canvas size.
25
- const engine = new WebGLEngine("canvas-id");
24
+ // Create engine by passing in the HTMLCanvasElement id and adjust canvas size
25
+ const engine = await WebGLEngine.create({ canvas: "canvas-id" });
26
26
 
27
27
  // Initialize physics manager with LitePhysics.
28
28
  engine.physicsManager.initialize(LitePhysics);