Documentation

Unity Engine

Unity Engine

Create(Vector2, Vector2, float)

Create a Capsule.
Read time 1 minuteLast updated a month ago

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.