Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

PolygonGeometry.isValid

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public bool isValid;

Description

Whether the geometry describes a polygon that can be used.

The vertex count must be from 3 to PhysicsConstants.MaxPolygonVertices, the radius must be finite and zero or greater, and the centroid, every vertex and every normal must be finite. The vertices must also form a convex hull that keeps every one of them, so a vertex that would be welded away or dropped makes the geometry invalid. See PolygonGeometry.areEdgesValid for the rules that decide which vertices survive.