What is the best way to add a large static game level into the physics system? #1298
-
The game level is completely static, nothing moves inside it until now. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There's a limit to the number of triangles that fit into a single mesh, so you will eventually run into problems with this.
Again, this could run into issues as the 32-bit SubShapeID may run out of space.
That could work. Alternatively, you could cluster entities and create a single body per cluster. E.g. you could pick areas of 50x50 m and add everything in that area in a single compound shape/body. Use e.g. the center point of the entity to classify (so the entities could stick out of the 50x50 area a bit). |
Beta Was this translation helpful? Give feedback.
There's a limit to the number of triangles that fit into a single mesh, so you will eventually run into problems with this.
Again, this could run into issues as the 32-bit SubShapeID may run out of space.
That could work. Alternatively, you could cluster entities and create a single body per cluster. E.g. you could pick areas of 50x50 m and add everything in th…