Validate()
Get a validated version of the geometry, if possible.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public readonly PolygonGeometry Validate()
Returns
Type | Description |
|---|---|
| PolygonGeometry | A validated copy of the geometry with updated normals, centroid etc. Depending on the current geometry, the returned geometry may not be valid. See PolygonGeometry.isValid. |