donaltrung Posted June 18, 2025 Posted June 18, 2025 I want to create a static collider — for example, a fence. I believe there are two ways to do this: Enable the collision flag for all surfaces of the mesh, or Add a dummy body to the mesh that uses a collision shape with simpler geometry. Which method offers better performance? Thanks!
bmyagkov Posted June 18, 2025 Posted June 18, 2025 Hey there! @donaltrungThe second option should be way faster, so it’s probably the best fit for your case :) Thanks!
donaltrung Posted June 18, 2025 Author Posted June 18, 2025 So it doesn't matter whether we use Shape–Shape or Shape–Surface collisions — more complex geometry always reduces performance, right?
bmyagkov Posted June 18, 2025 Posted June 18, 2025 2 hours ago, donaltrung said: So it doesn't matter whether we use Shape–Shape or Shape–Surface collisions — more complex geometry always reduces performance, right? Shape-to-Shape collisions are extremely fast (e.g., cube vs cube or cube vs sphere) since there are no triangles involved in the computation. Shape-to-Surface collisions will always be slower, as the shape needs to be checked against all the triangles on the surface. Thanks!
bmyagkov Posted June 18, 2025 Posted June 18, 2025 Just now, donaltrung said: OK! Thanks! You're welcome!
Recommended Posts