ドキュメント

Unity Engine

Unity Engine

DeleteVertex(PolygonGeometry, int)

Delete a vertex from the geometry returning a new geometry with updated normals and centroid.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static PolygonGeometry DeleteVertex(PolygonGeometry geometry, int index)

Parameters

The geometry to adjust.

index

The vertex index to delete.

Returns

Type

Description

PolygonGeometryThe new geometry with the deleted vertex.