@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 +2 -2
- package/dist/browser.js +1200 -1225
- package/dist/browser.min.js +1 -1
- package/dist/main.js +21 -46
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +6856 -5145
- package/dist/module.js +18 -45
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
- package/types/LitePhysics.d.ts +19 -15
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 =
|
|
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);
|