spoint 0.1.78 → 0.1.79

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,14 +25,9 @@ export default {
25
25
  server: {
26
26
  setup(ctx) {
27
27
  ctx.physics.setStatic(true)
28
- // Use trimesh collider for environment - handles both compressed and uncompressed
29
- try {
30
- ctx.physics.addTrimeshCollider()
31
- } catch (e) {
32
- // Fallback if trimesh extraction fails (e.g., unsupported model format)
33
- console.log(`[Environment] Trimesh collider failed: ${e.message}`)
34
- ctx.physics.addBoxCollider([50, 0.5, 50])
35
- }
28
+ // Use simple box collider for environment - trimesh creation is too slow for large meshes
29
+ // The environment is primarily visual; players collide with box bounds instead
30
+ ctx.physics.addBoxCollider([50, 15, 50])
36
31
 
37
32
  ctx.state.smartObjects = new Map()
38
33
  ctx.state.editorMode = false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoint",
3
- "version": "0.1.78",
3
+ "version": "0.1.79",
4
4
  "description": "Physics and netcode SDK for multiplayer game servers",
5
5
  "type": "module",
6
6
  "main": "src/index.js",