文档

Unity Engine

Unity Engine

ChainSegmentGeometry

Create a default ChainSegment. See ChainSegmentGeometry.defaultGeometry.
阅读时间1 分钟最后更新于 23 天前

Definition

  • Type: Constructor
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

ChainSegmentGeometry()

Create a default ChainSegment. See ChainSegmentGeometry.defaultGeometry.
public ChainSegmentGeometry()

ChainSegmentGeometry(SegmentGeometry, Vector2, Vector2)

Create a default ChainSegment.
public ChainSegmentGeometry(SegmentGeometry segmentGeometry, Vector2 ghost1, Vector2 ghost2)

Parameters

segmentGeometry

The segment geometry.

ghost1

The 'ghost' vertex preceding SegmentGeometry.point1.

ghost2

The 'ghost' vertex following SegmentGeometry.point2.