spoint 0.1.75 → 0.1.76

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.
@@ -25,7 +25,12 @@ export default {
25
25
  server: {
26
26
  setup(ctx) {
27
27
  ctx.physics.setStatic(true)
28
- ctx.physics.addTrimeshCollider()
28
+ try {
29
+ ctx.physics.addTrimeshCollider()
30
+ } catch (e) {
31
+ ctx.debug.log(`[Environment] Trimesh collider failed (likely Draco compression), using fallback box collider: ${e.message}`)
32
+ ctx.physics.addBoxCollider([50, 0.5, 50])
33
+ }
29
34
 
30
35
  ctx.state.smartObjects = new Map()
31
36
  ctx.state.editorMode = false
@@ -65,6 +65,6 @@ export default {
65
65
  // To use the primitive arena instead of schwust.glb, replace above with:
66
66
  // { id: 'arena', position: [0, 0, 0], app: 'arena' }
67
67
  ],
68
- playerModel: './apps/tps-game/cleetus.glb',
68
+ playerModel: './apps/tps-game/cleetus.vrm',
69
69
  spawnPoint: [-35, 3, -65]
70
70
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoint",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
4
  "description": "Physics and netcode SDK for multiplayer game servers",
5
5
  "type": "module",
6
6
  "main": "src/index.js",