MeshColliderComponent struct in Thread
Collides against the entity's actual mesh triangles — the missing piece for mesh terrain (caves, overhangs, undercut cliffs a heightfield can't do). It takes the collision triangles that survive the GPU upload and hands them to Jolt. Like every collider, it is consumed by the RigidBody path: the entity also needs a RigidBodyComponent (a static one, for terrain) — the editor adds that for you.
Properties
| Convex | bool | Collide against the mesh's convex hull (a movable shape) instead of the exact triangle soup. |
| Friction | float | Surface friction. |
| Restitution | float | Bounciness. |
Convex to collide against the hull. (A dynamic body with Convex off falls back to the
hull anyway, with a warning — no collider at all would mean falling through the world.)For simple shapes prefer Box / Sphere / Capsule colliders — they are cheaper and can be dynamic.
MeshColliderComponent struct w Thread
Koliduje z prawdziwymi trójkątami siatki encji — brakujący element dla terenu z siatki (jaskinie, nawisy, podcięte klify, których heightfield nie odwzoruje). Bierze trójkąty kolizji, które przetrwały wysyłkę na GPU, i przekazuje je do Jolt. Jak każdy collider, jest obsługiwany przez ścieżkę RigidBody: encja potrzebuje też RigidBodyComponent (statycznego, dla terenu) — edytor doda go za ciebie.
Właściwości
| Convex | bool | Koliduj z otoczką wypukłą siatki (kształt, który może się ruszać) zamiast z dokładną zupą trójkątów. |
| Friction | float | Tarcie powierzchni. |
| Restitution | float | Sprężystość odbić. |
Convex, żeby kolidować z otoczką. (Dynamiczne ciało z
wyłączonym Convex i tak przechodzi na otoczkę, z ostrzeżeniem — brak collidera oznaczałby
przelecenie przez świat.)Dla prostych kształtów lepsze są collidery Box / Sphere / Capsule — są tańsze i mogą być dynamiczne.