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
|
|
29
|
-
|
|
30
|
-
|
|
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
|