文档

Unity Engine

Unity Engine

CastShapeInput

Create a default cast shape input.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

CastShapeInput()

Create a default cast shape input.
public CastShapeInput()

CastShapeInput(CircleGeometry, Vector2)

Create a CastShapeInput the specified CircleGeometry. You should transform the geometry into the space you require.
public CastShapeInput(CircleGeometry circleGeometry, Vector2 translation)

Parameters

circleGeometry

The geometry to use.

translation

The cast translation to use.

CastShapeInput(CapsuleGeometry, Vector2)

Create a CastShapeInput the specified CapsuleGeometry. You should transform the geometry into the space you require.
public CastShapeInput(CapsuleGeometry capsuleGeometry, Vector2 translation)

Parameters

capsuleGeometry

The geometry to use.

translation

The cast translation to use.

CastShapeInput(SegmentGeometry, Vector2)

Create a CastShapeInput the specified SegmentGeometry. You should transform the geometry into the space you require.
public CastShapeInput(SegmentGeometry segmentGeometry, Vector2 translation)

Parameters

segmentGeometry

The geometry to use.

translation

The cast translation to use.

CastShapeInput(PolygonGeometry, Vector2)

Create a CastShapeInput the specified PolygonGeometry. You should transform the geometry into the space you require.
public CastShapeInput(PolygonGeometry polygonGeometry, Vector2 translation)

Parameters

polygonGeometry

The geometry to use.

translation

The cast translation to use.

CastShapeInput(ChainSegmentGeometry, Vector2)

Create a CastShapeInput the specified ChainSegmentGeometry. You should transform the geometry into the space you require.
public CastShapeInput(ChainSegmentGeometry chainSegmentGeometry, Vector2 translation)

Parameters

chainSegmentGeometry

The geometry to use.

translation

The cast translation to use.