Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Create(Vector2, Vector2, float)

Create a Capsule.
Read time 1 minuteLast updated 10 days ago

Definition

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.