Skip to main content

SAMeshColliderCommon.SplitMesh

A class in Root.Township, the global namespace.

Which part of a mesh an SAMeshCollider covers (submesh, triangle or polygon), from the SAColliderBuilder editor tool (third party).

Constructors​

MemberWhat it is
SplitMesh()Creates a SAMeshColliderCommon.SplitMesh with default values.

Fields​

MemberWhat it is
int[] polygonTrianglesTriangle indices of the polygon this collider covers.
Vector3[] polygonVerticesVertices of the polygon this collider covers.
int subMeshIndex of the submesh this collider covers, or -1.
int subMeshCountNumber of submeshes in the source mesh.
int triangleIndex of the triangle this collider covers, or -1.
Vector3[] triangleNormalsWorking copy of triangle normals, not saved.
int[] trianglesWorking copy of the triangle indices, not saved.
Vector3 triangleVertexA vertex of the chosen triangle, used to find it again.
Vector3[] verticesWorking copy of the vertices, not saved.

Methods​

MemberWhat it is
void PurgeTemporary()Drops the non-serialized working arrays (triangles, vertices, normals).

Used in​

Members of other types that take, return or hold a SplitMesh: