文档

Unity Engine

Unity Engine

Create(Vector2, Vector2, float)

Create a Capsule.
阅读时间1 分钟最后更新于 1 个月前

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.