Scripting API
Scripting API
MeshCollider3D
Struct in Abyss.Physics3D, from Abyss.Physics3D.
The entity's own mesh, as what it meets things with: its triangles, where it is ground or on a body that moves only as it is moved, or its hull — the smallest convex shape round it, what Convex makes it — on a Dynamic body and as a trigger, triangles having no inside to weigh or to be in, which the Inspector says. Scaled, turned and flipped with the entity; it meets nothing where the entity carries no mesh.
public struct MeshCollider3DRemarks
The mesh's corners and triangles are read once each time the game plays, and made a shape once for every collider of that mesh. Triangles meet things on their front, the side their corners go round counter-clockwise from, so what falls on a floor's underside passes through it; and a hull is no more than 256 corners, a mesh of more held by those furthest out.
Fields
Convex
public bool ConvexWhether it is its mesh's hull rather than its triangles, as it always is on a Dynamic body and as a trigger.
IsTrigger
public bool IsTriggerWhether it meets nothing.
Material
public AssetRef<PhysicsMaterial3D> MaterialWhat it is made of; none for Physics 3D's settings' default.
Density
public float DensityHow heavy its hull is for its size, in kilograms a cubic meter: what its body's mass is worked out from where its Rigidbody 3D says Use Auto Mass.
