Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

CapsuleGeometry.Create

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static LowLevelPhysics2D.CapsuleGeometry Create(Vector2 center1, Vector2 center2, float radius);

Parameters

Parameter Description
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

CapsuleGeometry The created geometry.

Description

Create a Capsule.