ドキュメント

Unity Engine

Unity Engine

Create(Vector2, Vector2, float)

Create a Capsule.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public static CapsuleGeometry Create(Vector2 center1, Vector2 center2, float radius)

Parameters

center1

The first local center of the capsule end.

center2

The second local center of the capsule end.

radius

The radius of the capsule.

Returns

Type

Description

CapsuleGeometryThe created geometry.