meshfx // COLLISION // ROBLOX
How to fix mesh collision in Roblox Studio
In Roblox Studio you control a MeshPart's collision with CollisionFidelity: Box for a simple block, Hull for one shape that wraps the mesh, Default for a rough fit from several pieces, and PreciseConvexDecomposition for the closest fit. If none of them fits, place a simple invisible part over the mesh to act as its collision.
pyrofx effects work today, and new accounts start with $5 of usage.
meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the Playground.
- Property: CollisionFidelity
- Box, Hull, Default, PreciseConvexDecomposition
- Custom: an invisible collision part
01 // COLLISIONFIDELITY
Choose a CollisionFidelity
Boxuses the MeshPart's bounding box. It is the cheapest, and it suits crates, small props and anything players only bump into.Hullwraps the whole mesh in one convex shape. It works for rocks and barrels and fills in doorways and dents.Defaultbuilds a rough fit from several convex pieces, a middle ground for most props.PreciseConvexDecompositionuses many convex pieces for the closest fit. Use it for shapes players walk through or into, such as an arch or a hollow room, and expect a higher physics cost.
To see the shapes physics uses, turn on Show Decomposition Geometry in Roblox Studio Settings under Physics. Each MeshPart's outline then shows its collision shape.
02 // BY HAND
Use an invisible part as custom collision
- Build a simple collision version, either a low-poly MeshPart or a few regular Parts that block out the shape.
- Place it over the visible MeshPart and set its
Transparencyto 1 andCanCollideto true. - On the visible MeshPart, set
CanCollideto false, and setCanTouchandCanQueryto false if no script needs them. - Anchor both, or join them with a
WeldConstraintif the object moves. - Group them in a Model so they move and copy together.
03 // WHY IT SNAGS
Why players snag on a MeshPart
Players and vehicles catch on collision that has more corners than the mesh shows, and fall into gaps the collision leaves out. Hull closes every opening, so a house mesh set to Hull blocks its own door. PreciseConvexDecomposition follows the openings but costs more and still smooths over thin details. Building floors and walls from simple Parts and setting decoration to Box avoids most of these problems.
04 // meshfx
meshfx for collision in roblox
meshfx measures faults, checks repairs and makes LODs. Build physics shapes in your engine or editor. Hosted meshfx runs are available in the Playground.
What is CollisionFidelity on a Roblox Studio mesh?
CollisionFidelity controls how a MeshPart builds its collision shape, from a simple Box or Hull to Default or PreciseConvexDecomposition.
How do I fix mesh collision in Roblox Studio?
Turn on Show Decomposition Geometry to inspect the collision shape, then pick a closer CollisionFidelity or place an invisible simple part with CanCollide false on the mesh.
Can I use a custom collision mesh in Roblox Studio?
meshfx measures faults, checks repairs and makes LODs. In Roblox Studio you can place invisible simple parts over a MeshPart to act as custom collision.
How does SpecialMesh collision work in Roblox Studio?
meshfx measures faults, checks repairs and makes LODs. A MeshPart uses CollisionFidelity for its shape, while simple invisible parts handle custom collision cleanly.
Explore meshfx outputs
Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.